Kubernetes Workloads Cheat Sheet/Undo deployment rollout

Roll back to the previous revision.

Section: Deployments

Undo deployment rollout

bash
bash
kubectl rollout undo deployment/web -n payments
Explanation

Roll back to the previous 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 to specific revision
Roll back to a chosen 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