Lets say you have being deploying versions of the application. How do you keep track of the version and can you do a rollback?
In this part of the lab we should illustrate revision management of mychartapp
, using Kubernetes directly. I have however no idea on how to do this!
TBD
In this part of the lab we illustrate revision management on the deployed application mychartapp
, using Helm.
-
Check the number of deployments
$ helm history mychartapp
You should see output similar to the following:
REVISION UPDATED STATUS CHART DESCRIPTION 1 Wed Sep 19 16:38:07 2018 SUPERSEDED mychartapp-0.1.0 Install complete 2 Wed Sep 19 16:38:50 2018 DEPLOYED mychartapp-0.1.0 Upgrade complete
-
Rollback to previous revision
$ helm rollback mychartapp 1
The output should be similar to the following:
Rollback was a success! Happy Helming!
Check the history again,
$ helm history mychartapp
You should see output similar to the following:
REVISION UPDATED STATUS CHART DESCRIPTION 1 Wed Sep 19 16:38:07 2018 SUPERSEDED mychartapp-0.1.0 Install complete 2 Wed Sep 19 16:38:50 2018 SUPERSEDED mychartapp-0.1.0 Upgrade complete 3 Wed Sep 19 16:39:31 2018 DEPLOYED mychartapp-0.1.0 Rollback to 1
What can I say but Helm does revision management well!
Lab 4 awaits.