secret-replicator

by Helm

Helm chartv0.6.0App 0.2.0

A Helm chart to replicate secret across namespaces

About this chart

Secret Replicator

  • Source: https://github.com/kiwigrid/secret-replicator

Introduction

This chart distibutes existing secrets especially pull secrets across namespaces.

Installing the Chart

Install from remote URL with the release name secret-replicator into namespace default:

$ helm upgrade -i secret-replicator kiwigrid/secret-replicator

Uninstalling the Chart

To uninstall/delete the secret-replicator deployment:

$ helm delete secret-replicator --purge

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

Configuration

The following table lists the configurable parameters of the chart and their default values.

ParameterDescriptionDefault
image.repositoryimage namekiwigrid/secret-replicator
image.tagimage tag0.2.0
image.pullPolicyImage pull policyIfNotPresent
image.pullSecretsImage pull secretsnil
secretListlist of pull secretsempty string
ignoreNamespacesnamespaces which should be excluded from synckube-system,kube-pulic
secretNamespacenamespaces where the secrets can be found<release namespace>
resourcesResource limits for pod{}
nodeSelectorNodeSelector{}
tolerationsTolerations[]
affinityAffinity{}
podSecurityContextSecurityContext at pod level{}
containerSecurityContextSecurityContext at container level{}

Specify each parameter using the --set key=value[,key=value] argument to helm install.

Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the chart. For example,

$ helm install --name my-release -f values.yaml kiwigrid/secret-replicator

Tip: You can use the default values.yaml

Deploy secret-replicator with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has secret-replicator 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 chartsecret-replicator is pinned at v0.6.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