Rollouts and Rollbacks
Whenever we make a change to the application we would like the application to be deployed in a seamless manner that conforms to our strategy, we would also want to ensure that we can revert to a state that was most stable before the current failing rollout. To achieve this we can have a Deployment Strategy
Here are two strategies that are available
- ReCreate - Destroys all the pods and recreates then again at the same time, service outage is possible
- Rolling (Default) - Destroys one pod at a time and updates it, ensuring no service interruption
we can rollback a rollout using rollout undo < name-of-deployment >