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 →
- Developers get
Azure Kubernetes Service RBAC Readerin prod namespaces - Writes only through GitOps (Flux reverts manual changes on reconcile)
- Break-glass via a PIM-eligible group with
RBAC Writer - Alert on
kube-audit-adminlogs 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.
More on AKS and Containers
You're asked to build a production AKS cluster. Walk through your key decisions.IntermediateA team wants to deploy a new microservice to AKS that reads a database password. How do you wire secrets?BeginnerYou need to upgrade a production AKS cluster from 1.31 to 1.33. Plan it.AdvancedPods need to scale on Service Bus queue length, not CPU. How?AdvancedYou need to run a GPU workload on an existing AKS cluster. What do you do?IntermediateA noisy application keeps starving other workloads on shared nodes. How do you fix it?Beginner