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 →
- Enable
selfHeal: truein prod so manual edits are reverted. - Remove write RBAC in Kubernetes from developers; give read and logs access.
- Provide a fast Git path: a PR template for hotfixes with expedited approval.
- 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.
- 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.
More on Adopting GitOps & Repo Design
Your team deploys with Jenkins running `kubectl apply` and wants to move to Argo CD without downtime. How do you migrate?IntermediateA startup with three services asks whether they need a separate config repo. What do you recommend?BeginnerA team wants a Git branch per environment (`dev`, `staging`, `prod`). How do you respond?IntermediateYou must deploy one microservice to 4 environments with Helm. Which values structure do you choose?BeginnerYour config repo has 400 Applications in one monorepo and every commit triggers a refresh of everything. What do you change?AdvancedManagement asks for proof of who deployed what to production and when, for an audit. How does GitOps answer this?Beginner