Interview Prep/Azure/AKS and Containers

A developer `kubectl edit`ed a production Deployment during an incident. How do you prevent drift going forward?

IntermediateScenarioAKS and Containers
Answer

Situation read → Humans need break-glass, not routine write access.

What I'd do →

  1. Developers get Azure Kubernetes Service RBAC Reader in prod namespaces
  2. Writes only through GitOps (Flux reverts manual changes on reconcile)
  3. Break-glass via a PIM-eligible group with RBAC Writer
  4. Alert on kube-audit-admin logs for writes by human users in prod

Why → GitOps makes the repo the truth; manual edits get reverted and are visible in audit.

Interview tip → Mention the follow-up: the incident fix must be committed to git.

Azure All Azure questions Roadmap: AKS & Azure DevOps

More on AKS and Containers