Interview Prep/GitOps & Argo CD/Adopting GitOps & Repo Design

Developers keep running `kubectl edit` in production to "quickly fix" things. How do you stop it without blocking incident response?

IntermediateScenarioAdopting GitOps & Repo Design
Answer

Situation read → Cultural and access problem; GitOps can enforce, but on-call needs a path.

What I'd do →

  1. Enable selfHeal: true in prod so manual edits are reverted.
  2. Remove write RBAC in Kubernetes from developers; give read and logs access.
  3. Provide a fast Git path: a PR template for hotfixes with expedited approval.
  4. For emergencies, document a break-glass: disable self-heal on one app via an audited Argo CD action, fix, then commit the change to Git and re-enable.
  5. Alert on manual changes with notifications or audit logs.

Why → Enforcement plus a sanctioned emergency route works; enforcement alone pushes people to workarounds.

Interview tip → "Make the right way the fast way" lands well with interviewers.

All GitOps & Argo CD questions Roadmap: Argo CD (GitOps)

More on Adopting GitOps & Repo Design