sealed-secrets

by joaquinito2051

Helm chartv1.1.9App 0.19.1

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.

About this chart

Sealed Secrets packaged by Bitnami

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.

Overview of Sealed Secrets

Azure-ready Charts with Containers from marketplace.azurecr.io

This Helm Chart has been configured to pull the Container Images from the Azure Marketplace Public Repository. The following command allows you to download and install all the charts from this repository.

$ helm repo add bitnami-azure https://marketplace.azurecr.io/helm/v1/repo

TL;DR

$ helm repo add my-repo https://charts.bitnami.com/bitnami
$ helm install my-release my-repo/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 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 my-repo/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

Global parameters

NameDescriptionValue
global.imageRegistryGlobal Docker image registry""
global.imagePullSecretsGlobal Docker registry secret names as an array[]
global.storageClassGlobal StorageClass for Persistent Volume(s)""

Common parameters

NameDescriptionValue
kubeVersionOverride Kubernetes version""
nameOverrideString to partially override common.names.fullname""
fullnameOverrideString to fully override common.names.fullname""
namespaceOverrideString to fully override common.names.namespace""
commonLabelsLabels to add to all deployed objects{}
commonAnnotationsAnnotations to add to all deployed objects{}
clusterDomainKubernetes cluster domain namecluster.local
extraDeployArray of extra objects to deploy with the release[]

Sealed Secrets Parameters

NameDescriptionValue
image.registrySealed Secrets image registrydocker.io
image.repositorySealed Secrets image repositorybitnami/sealed-secrets
image.tagSealed Secrets image tag (immutable tags are recommended)0.19.1-scratch-r0
image.digestSealed Secrets image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag""
image.pullPolicySealed Secrets image pull policyIfNotPresent
image.pullSecretsSealed Secrets image pull secrets[]
image.debugEnable Sealed Secrets image debug modefalse
commandOverride default container command (useful when using custom images)[]
commandArgsAdditional args (doesn't override the default ones)[]
argsOverride default container args (useful when using custom images)[]
containerPorts.httpController HTTP container port to open8080
resources.limitsThe resources limits for the Sealed Secret containers{}
resources.requestsThe requested resources for the Sealed Secret containers{}
livenessProbe.enabledEnable livenessProbe on Sealed Secret containerstrue
livenessProbe.initialDelaySecondsInitial delay seconds for livenessProbe5
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 readinessProbe5
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 startupProbe10
startupProbe.periodSecondsPeriod seconds for startupProbe10
startupProbe.timeoutSecondsTimeout seconds for startupProbe1
startupProbe.failureThresholdFailure threshold for startupProbe15
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{}
podSecurityContext.enabledEnabled Sealed Secret pods' Security Contexttrue
podSecurityContext.fsGroupSet Sealed Secret pod's Security Context fsGroup1001
podSecurityContext.seccompProfile.typeSet Sealed Secret pod's Security Context seccompProfile typeRuntimeDefault
containerSecurityContext.enabledEnabled Sealed Secret containers' Security Contexttrue
containerSecurityContext.allowPrivilegeEscalationWhether the Sealed Secret container can escalate privilegesfalse
containerSecurityContext.capabilities.dropWhich privileges to drop in the Sealed Secret container["ALL"]
containerSecurityContext.readOnlyRootFilesystemWhether the Sealed Secret container has a read-only root filesystemtrue
containerSecurityContext.runAsNonRootIndicates that the Sealed Secret container must run as a non-root usertrue
containerSecurityContext.runAsUserSet Sealed Secret containers' Security Context runAsUser1001
containerSecurityContext.seccompProfile.typeSet Sealed Secret container's Security Context seccompProfile typeRuntimeDefault
hostAliasesSealed Secret pods host aliases[]
podLabelsExtra labels for Sealed Secret pods{}
podAnnotationsAnnotations for Sealed Secret pods{}
podAffinityPresetPod affinity preset. Ignored if affinity is set. Allowed values: soft or hard""
podAntiAffinityPresetPod anti-affinity preset. Ignored if affinity is set. Allowed values: soft or

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 v1.1.9 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