Walk me through a rolling update of a 10-replica Deployment with maxSurge: 25% and maxUnavailable: 0. How many pods can exist at any moment, and what actually moves the rollout forward?
- The rollout advances on a fixed timer regardless of readiness. Readiness is the signal; progressDeadlineSeconds only reports a stuck rollout, it does not drive it.
- At most 10 plus 25% (rounded up) pods exist and never fewer than 10 are available; the rollout advances only as new pods pass their readiness probes. maxSurge caps extra pods, maxUnavailable: 0 forbids dropping below desired, and readiness is the gate that lets the old ReplicaSet scale down.
- Old pods are deleted first, then new pods created, 25% at a time. With maxUnavailable 0 the controller must create and wait for readiness before removing anything.
- maxSurge applies to nodes, so 25% more nodes are provisioned. Surge is about pods in the Deployment, not cluster nodes.
At most 25% extra pods exist, none of the desired pods may be unavailable, and the rollout moves only as new pods become Ready.
Rollouts are a dance between two ReplicaSets bounded by surge and unavailability, paced by readiness. A pod that never becomes Ready freezes the rollout at the bound, which is the safe failure: capacity is preserved and the operator sees progressDeadlineSeconds exceeded rather than an outage.
Saying the rollout advances on a timer, or that progressDeadlineSeconds rolls it back. Readiness drives it and nothing rolls back on its own; the deadline only flips a condition.