Rolling back to a previous Helm release
In this section, let's see how to roll back to a previous version using the helm rollback
command.
The helm rollback
command is unique to Helm, and it allows us to roll back the whole application, so you do not have to worry about which Kubernetes resources need to be rolled back specifically.
Of course, when dealing with the release IDs of real-world applications, database schemas get changed as well, so to roll back the frontend application, you have to roll back the database schema changes too. This means that things aren't always so straightforward as they may seem here, but using Helm still simplifies some parts of the application release rollback process.
To run the helm rollback
command, we first need to know the release revision we want to roll back to, which we can find with the following command:
$ helm history postgresql
The output of the preceding command is shown in the following screenshot: