Examples
Very simple example
values.yaml
# File: values.yaml
Thing: library/postgres
ThingName: image
template.tpl
# File: template.tpl
Your username is {{ default "<unknown>" .Env.USER }}
The default {{ .Values.ThingName }} we should use is "{{ .Values.Thing }}"
shell
template render -f values.yaml template.tpl
Output:
Your username is alice
The default image we should use is "library/postgres"
Overriding values with --set
shell
template render -f values.yaml --set Thing=library/mongodb template.tpl
Output:
Your username is alice
The default image we should use is "library/mongodb"