setup 10+ environment variables in Helm Chart secret and aws parameter store

3/2/2020

this is a extended question to How to pull environment variables with Helm charts

I am currently using k8s manifest file to setup secret and deployment. as @uberrebu asked in the comment"

one quick question...what if i have like 50 environment variable i want to pull...is there a way to simplify things when the variables are many? otherwise the helm install command will be pretty lengthy with --set for like 50 variablesuberrebu

I am currently having 18 environment variables in the secret definition and a lengthy section in the deployment yaml to reference the secret.

...
- name: TOKEN
            valueFrom:
              secretKeyRef:
                name: secret-dev
                key: TOKEN
...

I am saving my secrets in aws parameter store...is there a good way to set it up to make helm chart working with parameter store instead of pre-populating values in a values.yaml file and pass it to help install with -f?

-- void
kubernetes-helm

0 Answers