Verifying Helm templating
One of the primary purposes of Helm is to create Kubernetes resources. As a result, when developing and testing a Helm chart, you should ensure that your resources are being generated properly. This can be accomplished using a variety of methods. We will discuss these in the next section.
Validating template generation locally with helm template
The first way to validate the templating of your chart is to use the helm template
command. We first introduced this command in Chapter 6, Understanding Helm Templates. In this chapter, we will describe using the helm template
command to render a chart’s templates locally.
The helm template
command has the following syntax:
$ helm template [NAME] [CHART] [flags]
You can see this command in action by demonstrating it against the Helm chart located in chapter9/guestbook
in the Packt repository:
$ helm template my-guestbook guestbook
The result of this command will display each of the Kubernetes...