Dealing with Bad Releases
Explore how to manage Kubernetes deployments effectively by learning to handle bad releases. Understand manual rollbacks and how readiness probes can automatically prevent problematic updates, ensuring your application stays stable and responsive during deployments.
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 ...