Interview Prep/Helm/Values & Precedence

How do you print the computed values for a release before installing it?

IntermediateConceptValues & Precedence
Answer

helm template does not print values, but --dry-run shows them, and you can also render a debug ConfigMap. The quickest reliable ways:

helm install shop ./shop -f values-prod.yaml --dry-run=client --debug | sed -n '/^COMPUTED VALUES:/,/^HOOKS:/p'
helm show values ./shop                      # defaults only

--debug prints USER-SUPPLIED VALUES and COMPUTED VALUES sections, which is the merged result after all layers and subchart coalescing.

All Helm questions Roadmap: Helm

More on Values & Precedence