Skip to content

Instantly share code, notes, and snippets.

@hickeyma
Last active September 19, 2018 15:59
Show Gist options
  • Save hickeyma/41f39ca10c850164eb227f1e289614bd to your computer and use it in GitHub Desktop.
Save hickeyma/41f39ca10c850164eb227f1e289614bd to your computer and use it in GitHub Desktop.

Lab 3. Keeping track of the deployed application

Lets say you have being deploying versions of the application. How do you keep track of the version and can you do a rollback?

1. Revision management using Kubernetes directly

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

2. Revision management using Helm

In this part of the lab we illustrate revision management on the deployed application mychartapp, using Helm.

  1. 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
  2. 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

3. Conclusion

What can I say but Helm does revision management well!

Lab 4 awaits.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment