Journeys · Kubernetes · L1

A rolling update, one Pod at a time

You change one line. Two ReplicaSets trade places, and the Service never runs dry.

✓ Validated on v1.37.2 · validation Run 1 · 2026-11-21Preview

The 30-second answer

Changing the Pod template gives it a new hash. The Deployment controller makes a new ReplicaSet for that hash and then moves the replica count across, a step at a time. It may run one extra Pod (max surge) and have one Pod missing (max unavailable). Each time a new Pod passes its readiness check, the controller takes one more from the old ReplicaSet and gives one more to the new one. The old ReplicaSet stays, at zero, so you can roll back.

Mental model

A café changing every waiter's menu card. The rule is: never fewer than three waiters on the floor, and never more than five. One new waiter starts and one old waiter leaves. Each time a new waiter is ready to serve, one more old waiter goes home.

Where the analogy breaks

The manager never hands out cards. The Deployment controller only changes two numbers: how many Pods each ReplicaSet should have. The ReplicaSet controller creates and deletes the Pods. And whether a new Pod is ready to serve is decided by your readiness check, not by the manager looking.

🔒 Free account

Sign up free to play this journey

A free account unlocks every scenario, journey and exam, and saves your progress. No payment, ever.