Rolling update
Definition
A rolling update gradually replaces old instances with new ones, starting a new instance, waiting until it is ready, draining an old one and stopping it, at a pace set by limits such as maxSurge and maxUnavailable.
In practice
Rolling updates need no second environment and cause no downtime when done in the right order: start, ready, drain, stop, never stop first. Rollback is another rolling update to the previous image digest. It is the default strategy in Kubernetes Deployments and most autoscaling groups.
The only gate is readiness. A release that starts and passes its probe but returns wrong answers or fails on a missing dependency rolls out to everyone. Old and new versions also serve side by side for a while, so APIs, messages and database schemas must be compatible across both. For risky services, combine it with a canary and metric analysis.
Example
With 10 replicas, maxSurge: 25% and maxUnavailable: 0, Kubernetes runs up to 13 pods during the rollout and never fewer than 10 ready ones.