sealed-secrets

by joaquinito2051

Helm chartv2.22.0App 0.41.2

Helm chart for the sealed-secrets controller.

About this chart

Sealed Secrets

Sealed Secrets are "one-way" encrypted K8s Secrets that can be created by anyone, but can only be decrypted by the controller running in the target cluster recovering the original object.

  • Sealed Secrets
    • TL;DR
    • Introduction
    • Prerequisites
    • Installing the Chart
    • Uninstalling the Chart
    • Parameters
      • Common parameters
      • Sealed Secrets Parameters
      • Traffic Exposure Parameters
      • Other Parameters
      • Metrics parameters
      • PodDisruptionBudget Parameters
    • Using kubeseal
    • Configuration and installation details
    • Troubleshooting
    • Upgrading
      • To 2.0.0

TL;DR

$ helm repo add sealed-secrets https://bitnami.github.io/sealed-secrets
$ helm install my-release sealed-secrets/sealed-secrets

Introduction

Bitnami charts for Helm are carefully engineered, actively maintained and are the quickest and easiest way to deploy containers on a Kubernetes cluster that are ready to handle production workloads.

This chart bootstraps a Sealed Secret Controller Deployment in Kubernetes using the Helm package manager.

Bitnami charts can be used with Kubeapps for the deployment and management of Helm Charts in clusters.

Prerequisites

  • Kubernetes 1.16+
  • Helm 3.1.0

Installing the Chart

To install the chart with the release name my-release:

helm install my-release sealed-secrets/sealed-secrets

The command deploys the Sealed Secrets controller on the Kubernetes cluster in the default configuration. The Parameters section lists the parameters that can be configured during installation.

Tip: List all releases using helm list

Uninstalling the Chart

To uninstall/delete the my-release deployment:

helm delete my-release

The command removes all the Kubernetes components associated with the chart and deletes the release.

Parameters

Common parameters

NameDescriptionValue
kubeVersionOverride Kubernetes version""
nameOverrideString to partially override sealed-secrets.fullname""
fullnameOverrideString to fully override sealed-secrets.fullname""
namespaceNamespace where to deploy the Sealed Secrets controller""
extraDeployArray of extra objects to deploy with the release[]
commonAnnotationsAnnotations to add to all deployed resources{}
commonLabelsLabels to add to all deployed resources{}

Sealed Secrets Parameters

NameDescriptionValue
image.registrySealed Secrets image registrydocker.io
image.repositorySealed Secrets image repositorybitnami/sealed-secrets-controller
image.tagSealed Secrets image tag (immutable tags are recommended)0.41.2
image.pullPolicySealed Secrets image pull policyIfNotPresent
image.pullSecretsSealed Secrets image pull secrets[]
revisionHistoryLimitNumber of old history to retain to allow rollback (If not set, default Kubernetes value is set to 10)""
createControllerSpecifies whether the Sealed Secrets controller should be createdtrue
secretNameThe name of an existing TLS secret containing the key used to encrypt secretssealed-secrets-key
updateStatusSpecifies whether the Sealed Secrets controller should update the status subresourcetrue
skipRecreateSpecifies whether the Sealed Secrets controller should skip restoring removed or modified secretsfalse
keyrenewperiodSpecifies key renewal period. Default 30 days""
keyttlSpecifies the certificate validity duration. Default 10 years.""
keycutofftimeSpecifies a date at which the controller should generate a new certificate. Useful in early key renewal scenarios.""
rateLimitNumber of allowed sustained request per second for verify endpoint""
rateLimitBurstNumber of requests allowed to exceed the rate limit per second for verify endpoint""
additionalNamespacesList of namespaces used to manage the Sealed Secrets[]
privateKeyAnnotationsMap of annotations to be set on the sealing keypairs{}
privateKeyLabelsMap of labels to be set on the sealing keypairs{}
logInfoStdoutSpecifies whether the Sealed Secrets controller will log info to stdoutfalse
logLevelSpecifies log level of controller (INFO,ERROR)""
logFormatSpecifies log format (text,json)""
maxRetriesNumber of maximum retries""
watchForSecretsSpecifies whether the Sealed Secrets controller will watch for new secretsfalse
kubeClientQPSKubeclient QPS (negative value disables ratelimiting)""
kubeClientBurstKubeclient Burst""
commandOverride default container command[]
argsOverride default container args[]
livenessProbe.enabledEnable livenessProbe on Sealed Secret containerstrue
livenessProbe.initialDelaySecondsInitial delay seconds for livenessProbe0
livenessProbe.periodSecondsPeriod seconds for livenessProbe10
livenessProbe.timeoutSecondsTimeout seconds for livenessProbe1
livenessProbe.failureThresholdFailure threshold for livenessProbe3
livenessProbe.successThresholdSuccess threshold for livenessProbe1
readinessProbe.enabledEnable readinessProbe on Sealed Secret containerstrue
readinessProbe.initialDelaySecondsInitial delay seconds for readinessProbe0
readinessProbe.periodSecondsPeriod seconds for readinessProbe10
readinessProbe.timeoutSecondsTimeout seconds for readinessProbe1
readinessProbe.failureThresholdFailure threshold for readinessProbe3
readinessProbe.successThresholdSuccess threshold for readinessProbe1
startupProbe.enabledEnable startupProbe on Sealed Secret containersfalse
startupProbe.initialDelaySecondsInitial delay seconds for startupProbe0
startupProbe.periodSecondsPeriod seconds for startupProbe10
startupProbe.timeoutSecondsTimeout seconds for startupProbe1
startupProbe.failureThresholdFailure threshold for startupProbe3
startupProbe.successThresholdSuccess threshold for startupProbe1
customLivenessProbeCustom livenessProbe that overrides the default one{}
customReadinessProbeCustom readinessProbe that overrides the default one{}
customStartupProbeCustom startupProbe that overrides the default one{}
resources.limits

Deploy sealed-secrets with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has sealed-secrets on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartsealed-secrets is pinned at v2.22.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply