What is the precedence order of values in Helm?
BeginnerConceptValues & Precedence
Answer
From lowest to highest:
- The chart's own
values.yaml. - For a subchart, values set by the parent chart's
values.yamlunder the subchart's key. -f/--valuesfiles, in the order given; later files win.--set,--set-string,--set-file,--set-json,--set-literal, which override all files.
helm upgrade --install shop ./shop -f values.yaml -f values-prod.yaml --set api.image.tag=2.3.1
Maps are deep-merged; lists and scalars are replaced.
More on Values & Precedence
How are lists merged across values files?IntermediateWhat is the difference between `--set` and `--set-string`?BeginnerHow do you set nested keys, list items and keys containing dots with `--set`?IntermediateWhat are `--set-file`, `--set-json` and `--set-literal` for?IntermediateHow do you remove a default value set in a chart's `values.yaml`?IntermediateWhat does `--reuse-values` do and why is it dangerous?Advanced