Kubernetes Workloads Cheat Sheet/Undo to specific revision

Roll back to a chosen revision.

Section: Deployments

Undo to specific revision

bash
bash
kubectl rollout undo deployment/web --to-revision=3 -n payments
Explanation

Roll back to a chosen revision.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Deployments
Undo deployment rollout
Roll back to the previous revision.
OpenIn sheetbashsame section
Update deployment image
Roll out a new container image.
OpenIn sheetbashsame section
Watch rollout status
Block until the rollout finishes or fails.
OpenIn sheetbashsame section
Show rollout history
List deployment revisions.
OpenIn sheetbashsame section
Restart deployment
Trigger a restart without changing the image.
OpenIn sheetbashsame section
List deployments
Show deployments across namespaces.
OpenIn sheetbashsame section