This image is similar to and based on dtzar/helm-kubectl but adds Helm Secrets plugin as well as google cloud cli.
This image is useful to build continuos deployment jobs that can work with encrypted secrets in your helm charts.
latest tag is not being updated)Just like dtzar/helm-kubectl, you can directly run helm:
docker run --rm cousine/helm-kubectl-secrets \
helm install -f values.yaml stable/mariadb
Better yet, you can leverage Helm Secrets
and use helm-wrapper which automatically decrypts all encrypted files within the chart
at installation then cleans it up once the installation process is complete:
docker run --rm cousine/helm-kubectl-secrets \
helm-wrapper install -f encrypted_values.yaml stable/mariadb
To use Helm Secrets you'll need to import keys into the gpg keyring or setup the correct ENV variables (if you are using GCP KMS for example).
Helm-Kubernetes + Helm-Secrets will automatically import .gpg keys within /root/keys, so
all you've to do is mount your key location to /root/keys:
docker run -it -v ~/your-keys-folder:/root/keys cousine/helm-kubectl-secrets \
helm-wrapper install -f encrypted_values.yaml stable/mariadb
If you are using GCP KMS, you can place your json key and mount it to the container
like the previous step, then define the GOOGLE_APPLICATION_CREDENTIALS environment
variable to point to your key:
docker run -it -v ~/your-gcp-key-folder:/root/keys cousine/helm-kubectl-secrets \
-e GOOGLE_APPLICATION_CREDENTIALS='/root/keys/YOUR_KEY_FILENAME' \
helm-wrapper install -f encrypted_values.yaml stable/mariadb
Content type
Image
Digest
Size
378.3 MB
Last updated
over 6 years ago
docker pull csstaylor/helm-kubectl-secrets:3.2.1-gcp