Dealing with Bad Releases
Learn how we can manually and automatically prevent bad releases.
We'll cover the following...
Deployments also allow us to mitigate the risk of a bad release either by letting us manually rollback this release or by automatically preventing this release from happening.
Let’s test that out by creating a new version that simulates an issue. Here’s the updated code for our app:
Manually blocking the bad release
After three successful responses, the app crashes with an exception. This allows us to simulate a case where the app starts running correctly but after some time it starts failing. We’ve pushed this buggy image to Docker Hub by using the following commands:
Let’s update the manifest to start using this new image.
We can apply this manifest using the following command to see the rolling update happening again until all the pods running are using this new ...