Your team edits live resources with `kubectl edit` during incidents and then Helm reverts them. How do you handle this?
AdvancedScenarioValues & Environments
Answer
Situation read → Live fixes are lost at the next deploy, or worse, kept silently in some fields because of the three-way merge.
What I'd do →
- Allow emergency edits but require a follow-up PR to the values within the incident.
- Run
helm diff upgrade --three-way-mergebefore deploys so drift is visible. - With Argo CD, enable self-heal so manual changes are reverted immediately and the only path is Git.
- Lock down
editon prod for humans via RBAC; use break-glass roles.
Why → Git as source of truth only works if drift is visible and short-lived.
Interview tip → Tie this to the three-way merge and why drift may or may not survive.
More on Values & Environments
Dev, staging and prod values files have drifted and nobody knows which settings differ intentionally. What do you do?IntermediateA deploy pipeline uses `--reuse-values` and a new chart version just broke production. Why, and what do you change?AdvancedYou 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?Beginner