Roll out a healthy Kubernetes workload
8 steps · about 3 h 8 min · Intermediate
- Understand Deployment rollout state (doc, Kubernetes Documentation, 28 min)
Read desired, updated, available and unavailable replicas before tuning the rollout.
- Set evidence-based requests and limits (doc, Kubernetes Documentation, 28 min)
Give the scheduler useful demand information and avoid limits chosen without workload measurements.
- Separate startup readiness and liveness (doc, Kubernetes Documentation, 32 min)
Use each health signal for its intended decision so slow startup and temporary dependency failure do not cause loops.
- Relate health to container lifecycle (doc, Kubernetes Documentation, 24 min)
Connect termination behaviour and lifecycle hooks to the state visible during a rollout.
- Protect availability during voluntary disruption (tutorial, Kubernetes Documentation, 22 min)
Choose a disruption budget that protects service capacity without preventing all maintenance.
- Watch rollout progress explicitly (reference, Kubernetes Documentation, 14 min)
Wait on the controller's reported status rather than assuming an accepted manifest is healthy.
- Collect current and previous container logs (reference, Kubernetes Documentation, 18 min)
Preserve evidence from a failing and restarted container before changing the manifest.
- Rehearse a bad release and rollback (reference, Kubernetes Documentation, 22 min)
Prove the team can identify stalled progress, capture the cause and restore the prior revision.