Probes, rollouts, disruption and availability
Prerequisites: 02-objects, 03-networking, 04-eks-model
09 / Three probes, three different decisions
Scroll the diagram sideways for readable labels.
Availability needs several independent controls
Scroll the diagram sideways for readable labels.
Learning objective and probe mechanism verified
A startup probe protects slow initialization before normal liveness and readiness checks. Readiness failure removes normal ready participation in Service endpoints; it does not itself restart the container. Liveness failure eventually restarts a container according to its restart policy. These checks answer different questions.
[S10]Rollout and eviction mechanics verified
Deployment rolling updates use maxSurge and maxUnavailable. PDBs constrain eligible voluntary evictions, including compliant node drains. PDBs do not prevent node or zone failures, direct Pod deletion, or constrain Deployment rollout logic. Topology spread can distribute replicas across zones or hosts; strict placement rules can also leave Pods Pending.
[S04] [S09] [S13]Worked baseline synthesis
For an illustrative quote API, start with three replicas, one surge Pod and zero unavailable Pods during a rollout. Use a PDB requiring two available replicas and spread placement across eligible zones and hosts. These are exercise settings, not a claim that three replicas meet every SLA. Reserve surge capacity and test the load remaining replicas can handle.
[S04] [S09] [S13]Pitfall and shutdown decision synthesis
Do not make every transient database failure kill a healthy process. Design local liveness and useful-service readiness deliberately. During termination, the application must stop accepting new work and finish or release existing work within its grace period; align this with load-balancer draining. This is application design guidance, not a promise of immediate endpoint convergence.
[S10] [S20]Further improvement synthesis
Use the bundled workload example as a review specimen. Tune startup budget, readiness conditions, request duration and drain behavior using a load test. Verify failed releases and replica loss at the user-facing endpoint. A rollout remaining available says little about a backwards-incompatible database migration.
[S10] [S04]Check yourself: Can a PDB guarantee that a Deployment rollout never takes down too many Pods?
No. Deployment rollout availability is controlled by its rollout strategy. PDB governs eligible eviction paths and does not prevent involuntary failures.