Interview Prep/Helm/Values & Environments

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 →

  1. Allow emergency edits but require a follow-up PR to the values within the incident.
  2. Run helm diff upgrade --three-way-merge before deploys so drift is visible.
  3. With Argo CD, enable self-heal so manual changes are reverted immediately and the only path is Git.
  4. Lock down edit on 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.

All Helm questions Roadmap: Helm

More on Values & Environments