Roll out a healthy Kubernetes workload

8 steps · about 3 h 8 min · Intermediate

  1. Understand Deployment rollout state (doc, Kubernetes Documentation, 28 min)

    Read desired, updated, available and unavailable replicas before tuning the rollout.

  2. Set evidence-based requests and limits (doc, Kubernetes Documentation, 28 min)

    Give the scheduler useful demand information and avoid limits chosen without workload measurements.

  3. 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.

  4. Relate health to container lifecycle (doc, Kubernetes Documentation, 24 min)

    Connect termination behaviour and lifecycle hooks to the state visible during a rollout.

  5. Protect availability during voluntary disruption (tutorial, Kubernetes Documentation, 22 min)

    Choose a disruption budget that protects service capacity without preventing all maintenance.

  6. Watch rollout progress explicitly (reference, Kubernetes Documentation, 14 min)

    Wait on the controller's reported status rather than assuming an accepted manifest is healthy.

  7. Collect current and previous container logs (reference, Kubernetes Documentation, 18 min)

    Preserve evidence from a failing and restarted container before changing the manifest.

  8. 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.