A deploy pipeline uses `--reuse-values` and a new chart version just broke production. Why, and what do you change?
AdvancedScenarioValues & Environments
Answer
Situation read → The new chart added api.probes.startup in values.yaml, and the template reads it. With --reuse-values, Helm used the old release's values as the base, so the new default never arrived and the template rendered an empty probe.
What I'd do →
- Roll back:
helm rollback shop -n shop. - Change the pipeline to pass every values file explicitly and drop
--reuse-values(or use--reset-then-reuse-valuesif you must keep ad-hoc overrides). - Make templates defensive (
with,default) for newly added keys. - Keep env values in Git so the full set is always available.
Why → A deploy should be fully reproducible from Git, not dependent on what the previous run stored.
Interview tip → Explaining the mechanics of --reuse-values is a strong signal.
More on Values & Environments
Dev, staging and prod values files have drifted and nobody knows which settings differ intentionally. What do you do?IntermediateYou need a per-environment image tag set by CI, while everything else lives in Git. How do you wire it?BeginnerA value that should be `false` in prod keeps rendering as enabled. Where do you look?IntermediateDifferent clusters need different storage classes and ingress classes. How do you keep the chart portable?IntermediateA developer passes 20 `--set` flags in a shell script. What would you change?BeginnerYou must deploy to a region with an air-gapped cluster. How do you handle values and images?Advanced