Interview Prep/Helm/Values & Precedence

What is the precedence order of values in Helm?

BeginnerConceptValues & Precedence
Answer

From lowest to highest:

  1. The chart's own values.yaml.
  2. For a subchart, values set by the parent chart's values.yaml under the subchart's key.
  3. -f / --values files, in the order given; later files win.
  4. --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.

All Helm questions Roadmap: Helm

More on Values & Precedence