kubernetes,

Rollback Kubernetes deployment using Helm

Jun 08, 2023 · 1 min read · Post a comment

Helm’s rollback feature allows us to revert to a previous rather “safe” state of a certain release. Here’s how to do it.

Prerequisites

  • Up and running k8s cluster
  • Helm

Solution

Step 1. List all releases:

helm list --all

Step 2. Find the faulty release and list the revision history for this particular release:

helm history <release_name>

Step 3. Do the rollback:

helm rollback <release_name> <revision_number>

Note: Keep in mind, by rollbacking to a previous revision, Helm will create a new one.

Conclusion

In case you face any issues, feel free to leave a comment below and if you find this tutorial useful, follow our official channel on Telegram.