Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Envvars from values.yaml

In deployment.tpl:


{{- range $key, $val := .Values.env }}
  - name: {{ $key }}
    value: {{ $val | quote }}
{{- end }}

and in values.yaml

env:          
  FOO: "BAR"
  USERNAME: "CHANGEME"
  PASWORD: "CHANGEME"

OR

envvars:                                                                        
  - name: DEFAULT_LOCALE                                                        
    value: nl            

and


env:                                                                  
{{- range .Values.envvars }}                                          
- name: {{ .name }}                                                   
  value: {{ .value }}                                                 
{{- end }}