Values and Overrides

Layering values files and --set overrides, managing per-environment configuration cleanly, and validating inputs with values.schema.json.

Overview

One chart, many environments

Values are Helm's configuration layer: the mechanism that lets one chart serve many environments and use cases without duplicating templates. Layering, precedence and a clean multi-environment structure are core to effective Helm use.

Every deploy builds a single values map from several sources. The chart's values.yaml holds safe defaults. An environment file such as values-prod.yaml holds only what differs. A flag such as --set image.tag=SHA has the last word. Helm deep-merges them left to right, and the templates render from the one merged map.

Key concepts

  • Values precedence order
  • --set vs -f
  • helm get values vs helm get values --all
  • Deep merge semantics
  • values.schema.json

Interview questions

  • How would you structure values files for a service deployed to dev, staging, and production?
  • How do you handle secrets in Helm values without committing them to Git?
  • Describe how values.schema.json improves chart reliability.
  • How do you debug a release where the running behavior does not match your expected values?
  • What is the difference between --set, --set-string, --set-json, and --set-file?

Sign up free to read the full topic

More DevOps topics

Start free on Cariara · Coding problems · System design studio