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