secret
by Helm
Deploy arbitrary secrets
About this chart
secret
Deploy arbitrary secrets
Installation
helm repo add appuio https://charts.appuio.ch
helm install secret appuio/secret
Note: Properties suffixed with Templates support template functions and variables.
All standard Helm functions are available (https://helm.sh/docs/chart_template_guide/function_list/).
Values
| Key | Type | Default | Description |
|---|---|---|---|
| secrets | object | {} | Dict with key/values. Each key is the name of the secret. Each value may contain an object with .nameTemplate, .type, .stringData, .data, .labels, .annotations. If .nameTemplate is not given, the key name is used. You can pass additional templates to .stringDataTemplates and .nameTemplate. See an example in values.yaml. |
Upgrade configuration syntax
From version 1.1.0 onwards, the type of secrets changed from array to object to better support deep-merging behaviour of hierarchical configuration management tools.
Specifying secrets as an array is deprecated.
The changes are backwards compatible, altough you will note some default label changes.
Going forward, secrets is now an object by default.
Each key of secrets is the metadata.name of a secret.
To upgrade to the new structure, take the value of secrets[*].name and make it a key.
Given the example below, restructure the name and rename values to stringData:
secrets:
- name: db-creds
values:
db-host: mysql
to
secrets:
db-creds:
stringData:
db-host: mysql
The additional fields .type and .labels also need to be moved beneath the new name key (given example: db-creds).
v1.2 also now supports additional fields, see the example in values.yaml.
Deploy secret with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has secret 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 is pinned at v1.1.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