Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

use environment secret variable in helm

you cant pass pass Variables from any template to values.yaml with helm. Just from values.yaml to the templates.

The answer you are seeking was posted by mehowthe :

deployment.yaml =

      env:          
        {{- range .Values.env }}
      - name: {{ .name }}
        value: {{ .value }}
     {{- end }}
values.yaml =

env:          
 - name: "DBUser"
   value: ""
 - name: "DBPassword"
   value: ""
then

helm install chart_name --name release_name --set env.DBUser="FOO" --set env.DBPassword="BAR"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #environment #secret #variable #helm
ADD COMMENT
Topic
Name
6+5 =