What is a rollback, and how do you make rollbacks easy?
IntermediateConceptDeployment strategies
Answer
A rollback means returning to the previous working version after a bad deployment.
To make rollbacks fast and safe:
- Keep previous versions of artifacts and images (never overwrite tags like
latestin production). - Use strategies like blue/green or canary that keep the old version available.
- Make database changes backward compatible, so the old app version still works.
- Automate the rollback in your pipeline, for example
kubectl rollout undoor an Argo CD sync to the previous commit.