- Lab
- A Cloud Guru
Advanced Helm
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.
Path Info
Table of Contents
-
Challenge
Create the Manifest for the Test in the Ghost Chart's Default Location
Create a
tests
directory in thetemplates
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
andport
-
Challenge
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.
What's a lab?
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.
Provided environment for hands-on practice
We will provide the credentials and environment necessary for you to practice right within your browser.
Guided walkthrough
Follow along with the author’s guided walkthrough and build something new in your provided environment!
Did you know?
On average, you retain 75% more of your learning if you get time for practice.