helm upgrade history

helm kubernetes history

2 min read | by Jordi Prats

When you have an application installed using helm, you can upgrade it by using helm upgrade:

helm upgrade -f pet2cattle_values.yaml pet2cattle .

If we need to keep track of all the upgrades we are making to this application, we can rely on helm to keep this data

Using helm history we will be able to see when the upgrades took place:

$ helm history pet2cattle
REVISION  UPDATED                   STATUS      CHART         APP VERSION DESCRIPTION     
4         Tue Dec 17 19:59:01 2020  superseded  pet2cattle-1  1.5         Upgrade complete
7         Tue Dec 18 20:52:27 2020  superseded  pet2cattle-1  1.6         Upgrade complete
8         Wed Dec 19 08:32:29 2020  superseded  pet2cattle-1  1.7         Upgrade complete
9         Wed Dec 20 08:33:47 2020  superseded  pet2cattle-1  1.8         Upgrade complete
10        Wed Dec 21 08:36:12 2020  superseded  pet2cattle-1  1.9         Upgrade complete
11        Wed Dec 22 08:37:54 2020  superseded  pet2cattle-1  1.10        Upgrade complete
12        Wed Dec 23 08:40:06 2020  superseded  pet2cattle-1  1.11        Upgrade complete
13        Wed Dec 24 19:42:32 2020  deployed    pet2cattle-1  1.12        Upgrade complete

If we had to rollback some of the releases, or the release failed to deploy, it will also be tracked on the helm history. A failed upgrade would look like follows:

66        Mon May 10 19:57:13 2021  failed          ampa-1.0.3  3.59        Upgrade "ampa" failed: timed out waiting for the condition

In case we have to rollback to a previous helm revision, it's status on the helm history is going to be deployed just as any other release, but the description will tell you to which revision it was rollback to:

70        Sat Jan  9 19:29:23 2021  deployed    pet2cattle-2    3.7         Rollback to 68  

Posted on 01/01/2021

Categories