Advanced Helm

30 minutes
  • 2 Learning Objectives

About this Hands-on Lab

Chart tests are a way to validate the resources deployed in your Kubernetes application. Helm has this functionality in a special type of hook called a `test`. Understanding chart tests is a valuable skill that can be used to validate resources released with Helm and ensure that your applications have both deployed and are operating correctly.

Use the Chart Tests resource located at [https://helm.sh/docs/topics/chart_tests](https://helm.sh/docs/topics/chart_tests) for reference.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Create the Manifest for the Test in the Ghost Chart’s Default Location

Create a tests directory in the templates directory of the ghost chart. Using the page located at https://helm.sh/docs/topics/chart_tests as a reference, create the minimum viable test for the ghost chart.

  • This test should be named
  • This test needs the correct annotations
  • This test should use the busybox container image
  • This test should use the wget command
  • This test should target the service at its name and port
Validate, Release and Test the Application

Render the manifests using the dry-run directive to ensure the test manifest is correct. Create a release of the application. Run the test chart on the release.

Additional Resources

You have a chart that was created by your developers, and they would like you to create a service test for it. This is a proof-of-concept, so only the minimal test needs to be run. In this case, the test will simply ensure the service is available and connecting to the application.

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?