Rolling update and rollback

A rolling update gradually replaces the Pods of an old version with those of the new one, to avoid any interruption. The maxUnavailable and maxSurge parameters tune it. In case of a problem, kubectl rollout undo goes back to the previous revision.

Example

kubectl rollout status deployment/web
kubectl rollout undo deployment/web

Related concepts

The whole glossary