PART 7: INCIDENT MANAGEMENT
33. Control Plane Incident Post-Mortem Template
text
INCIDENT: etcd Quorum Lost - Cluster Unavailable
DATE: 2024-01-15
DURATION: 2 hours
SEVERITY: SEV-1
IMPACT: Entire cluster unmanageable. API server returned errors.
TIMELINE:
14:00 - Monitoring alert: etcd quorum lost
14:03 - On-call engineer acknowledged
14:05 - Found 2 of 3 etcd nodes down (disk failure)
14:08 - Confirmed only 1 etcd node remaining (no quorum)
14:15 - Attempted to restart failed etcd nodes
14:30 - etcd nodes failed to start (corrupted data)
14:45 - Decided to restore from backup
15:00 - Restored etcd from snapshot on all nodes
15:30 - etcd quorum restored
16:00 - Cluster fully operational
16:00 - Incident closed
ROOT CAUSE:
Two etcd nodes experienced simultaneous disk failures.
Their data was corrupted and they could not rejoin.
Only 1 of 3 nodes remained — quorum lost.
LESSONS LEARNED:
1. etcd nodes need redundant storage (RAID, multiple disks)
2. etcd backups must be tested regularly
3. 3 nodes is minimum; 5 nodes would have survived
ACTION ITEMS:
[ ] Move etcd to RAID 1 storage (Owner: Platform, Due: 2024-01-20)
[ ] Test etcd restore monthly (Owner: SRE, Due: 2024-01-25)
[ ] Evaluate 5-node etcd cluster (Owner: Architecture, Due: 2024-02-01)
34. On-Call Runbook: Control Plane Down
text
SYMPTOM: kubectl can't connect, API server errors.
STEP 1: Check API server health
$ curl -k https://localhost:6443/healthz
$ curl -k https://<load-balancer>:6443/healthz
STEP 2: Check etcd
$ etcdctl endpoint health --cluster
$ etcdctl endpoint status --cluster --write-out=table
$ systemctl status etcd
STEP 3: Check control plane processes
$ crictl ps | grep -E "apiserver|etcd|scheduler|controller"
$ journalctl -u kubelet -n 100
STEP 4: Check certificates
$ kubeadm certs check-expiration
$ openssl x509 -in /etc/kubernetes/pki/apiserver.crt -noout -dates
STEP 5: Check disk
$ df -h /var/lib/etcd
$ iostat -x 1 5
STEP 6: Check network
$ ping <other-control-plane>
$ ss -tlnp | grep 2379
STEP 7: If etcd is down
$ systemctl restart etcd
$ journalctl -u etcd -n 100
STEP 8: If quorum is lost
# Restore from backup (see Lab 2)
# Or, if enough data survives:
$ etcdctl member remove <failed-member>
$ etcdctl member add <new-member>
STEP 9: Escalate
35. Escalation Matrix
| Severity | Impact | Response Time | Escalation |
| SEV-1 | etcd down / quorum lost / API server down | 5 min | On-call + Platform + Management |
| SEV-2 | Scheduler down / controller manager down | 15 min | On-call + Platform |
| SEV-3 | Single etcd node down (quorum intact) | 1 hour | On-call |
| SEV-4 | Certificate expiring soon | 4 hours | Ticket |
1:1 copy of the class Google Doc, code in code blocks.