☁️Rollback
Also known as Roll Back, Revert Deployment, Rollback Deployment
Put the last version that worked back after a bad deploy.
Think of it like
Think of it like the undo button on a drawing app. One press, and the last change is gone.
Example
Jack's new release doubles the error rate. He runs one command, the old version is back in 40 seconds, and he fixes the bug after lunch.
Why it matters
Fast undo makes shipping less scary. Teams that can roll back in a minute are happy to deploy often.
Definition
Example code
console
$ kubectl rollout undo deployment/web
deployment.apps/web rolled backCommon mistake
Key takeaways
- 1Back to what worked. Then fix calmly.
- 2One command. A minute or two.
- 3Keep old builds. Or there is nothing to go back to.