secret-replicator
by Helm
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.
| Parameter | Description | Default |
|---|---|---|
image.repository | image name | kiwigrid/secret-replicator |
image.tag | image tag | 0.2.0 |
image.pullPolicy | Image pull policy | IfNotPresent |
image.pullSecrets | Image pull secrets | nil |
secretList | list of pull secrets | empty string |
ignoreNamespaces | namespaces which should be excluded from sync | kube-system,kube-pulic |
secretNamespace | namespaces where the secrets can be found | <release namespace> |
resources | Resource limits for pod | {} |
nodeSelector | NodeSelector | {} |
tolerations | Tolerations | [] |
affinity | Affinity | {} |
podSecurityContext | SecurityContext at pod level | {} |
containerSecurityContext | SecurityContext 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartsecret-replicator is pinned at v0.6.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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