I am currently using Helm charts for deployment. What I basically wanted to do is to set environment variables for different environments.
Use-case:
I am using Helm to deploy a Node JS application and based on the value of the environment variable NODE_ENV which will be set while deployment I wish to load specific config files.
Example:
env:
- name: NODE_ENV
value: production
...
I was going through HELM charts and I am unable to join the dots as to how we can use the templates/deployment.yaml, values.yaml and a deployment.yaml to establish the same.
Note:
It is the same environment variable which will hold separate values based on the deployment environment.
Any help would be helpful.