Full lesson
Explore the full explanation, examples, and visuals at your own pace.
Part 1
How can Kubernetes replace these Pods without interrupting service? The Service currently routes requests to three ready Pods: Old A, Old B, and Old C. A rolling update brings replacements into service before removing those endpoints.
One new Pod starts; three old Pods stay ready
The updated Deployment creates a new ReplicaSet, using its one surge slot to start New D beside the three old Pods. With maxUnavailable at zero, all three old Pods stay ready, so the Service keeps routing to them.
New D becomes ready
Once New D passes its readiness check, the Service can route traffic to it alongside Old A, Old B, and Old C. That fourth ready Pod creates room to remove one old Pod without dropping the ready count below three.
New D has started but is not ready. With zero unavailable Pods allowed, what happens to the three old Pods?
Let's think this through. New D has started but is not ready. With zero unavailable Pods allowed, what happens to the three old Pods? A: All three keep serving. B: One is removed immediately. C: All three stop receiving traffic. Choose an answer, or just think it through. I'll explain in a moment.
- All three keep serving
- One is removed immediately
- All three stop receiving traffic
New D has started but is not ready. With zero unavailable Pods allowed, what happens to the three old Pods?
The answer is A: All three keep serving. Starting a Pod does not make it ready to receive Service traffic. Removing an old Pod now would leave only two ready Pods, so the Deployment keeps all three while it waits for New D.
- All three keep serving
- One is removed immediately
- All three stop receiving traffic
Old A retires; three ready Pods remain
Once New D is ready, Old A leaves the Service’s endpoints and can terminate. The Service now routes to Old B, Old C, and New D, keeping three ready Pods available and freeing the surge slot for another replacement.
Repeat until all three Pods are new
The rollout repeats the same overlap: bring each new Pod online before retiring an old one. Now the Service routes to New D, New E, and New F—the three new endpoints.
What makes the handoff reliable?
Keeping three Pods ready doesn't guarantee zero failed requests. Accurate readiness checks, capacity for the surge Pod, and graceful shutdown for in-flight requests make the handoff reliable.
- Accurate readiness checks
- Capacity for the surge Pod
- Graceful shutdown for in-flight requests
The Service ends with three ready new Pods
A rolling update overlaps old and new ReplicaSets, scaling each within surge and availability limits. Readiness before retirement leaves the Service with three new ready Pods.




