kubectl rollout undo deploy/web --to-revision=2

Category: Kubernetes & Containers

kubectl rollout undo deploy/web --to-revision=2

Roll back to a specific revision

Reverts the deployment to revision 2 specifically, not just the previous one. Find revision numbers with kubectl rollout history deploy/web. Use the plain kubectl rollout undo deploy/web when you simply want the last good state.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.