Stage 4 · Flight Control: reliability
Problem: start, stop and move Pods without dropping a passenger's request.
Chapters
Builds on Stage 1's Services and readiness and Ignition's ReplicaSets.
- Probes: startup, liveness and readiness; thresholds; what each must not check.
- Termination and draining: the parallel shutdown paths, the routing race, one grace-period budget, PID 1.
- Requests, limits and pressure: scheduling on requests, throttling and OOM kills, QoS, node-pressure eviction.
- Scheduling and placement: filter, score, bind; reading
Pending; affinity, taints and the built-in ones. - Priority and spreading: preemption, skew, and the traps in counting it.
- Disruption budgets: the Eviction API,
disruptionsAllowed, and drains that never finish.
Ready for the walkthrough when you can answer
- Readiness fails vs liveness fails: what does the kubelet do in each case?
- Why can a Pod receive a request after its shutdown has started, and what does
preStop: sleep 5buy? - Grace period 30 s,
preStop5 s: how long may the app take to drain? - Requests equal limits: which QoS class, and where does it matter?
- Why is a Pod on a powered-off node replaced only after several minutes?
- A PDB says
minAvailable: 1with 1 replica. What does an eviction return, and what happens to a drain?