Workload
Pod status, restart count, last termination reason, probe events, current and previous logs.
Incident response is not fast command execution. It is disciplined uncertainty reduction under time pressure. The operator must protect users, establish scope, preserve evidence, choose a reversible intervention, and prove that service has actually recovered.
Before editing an object, answer four questions: What is the user-visible symptom? Which service, namespace, region, or tenant is affected? When did the behavior begin? What changed near that time? This prevents a common failure mode: repairing an object that looks unhealthy but is not responsible for the incident.
Rollback is appropriate when the previous revision is known good, available, and compatible with current data and dependencies. Forward-fix is appropriate when there is no reliable previous state, the change is data-dependent, or reverting would create another failure. The operator should state why one path has lower operational risk.
kubectl rollout history deployment/portfolio -n portfolio
kubectl rollout status deployment/portfolio -n portfolio
kubectl get rs -n portfolio --sort-by=.metadata.creationTimestamp
kubectl rollout undo deployment/portfolio -n portfolio --to-revision=<n>Do not stop at “rollout complete.” Confirm ready replicas, EndpointSlices, route conditions, error rate, latency, and a representative user request.
Pod status, restart count, last termination reason, probe events, current and previous logs.
Service selectors, EndpointSlices, DNS, NetworkPolicy, Gateway or Ingress status, connection tests.
Pending events, requests, allocatable resources, taints, tolerations, affinity, disruption budgets.
Static Pods, component logs, certificates, etcd health, API availability, reconciliation lag.
A technically correct repair can still be operationally poor when stakeholders receive no useful update. Use a simple format:
This separates facts from hypotheses and states the next decision point. Avoid declaring resolution until monitoring and user-path evidence remain healthy for a defined observation period.
A useful drill specifies a severity, time limit, evidence boundary, and change policy. For example: “You may inspect any namespaced object. You may not delete the namespace or recreate the cluster. You must preserve the original failure until evidence has been recorded.” Constraints prevent learners from escaping the diagnosis by destroying the environment.
Every incident should produce at least one improvement: a validation rule, a safer rollout policy, an alert, a runbook change, a test, or a documentation correction. A missing Secret key might produce admission validation or CI schema checks. A Service selector mismatch might produce policy-as-code or manifest unit tests. An etcd recovery drill might produce a scheduled snapshot-validation job and a restore rehearsal calendar.
State the symptom, scope, evidence, root cause, intervention, and proof. Do not narrate every command. Interviewers and incident commanders want to hear how you reduced uncertainty and managed risk.
Kubernetes Operator's Workbook, Second Edition turns these ideas into guided labs, 24 production incidents, control-plane recovery, and interview simulations.
Explore the workbook