How to create a helm package?

Once you have your helm Chart ready for shipping (your build is ready), you can create the archive or package using the helm package command, the command to pack is helm package.

Helm package command syntax:

helm package <CHART-NAME>

This should be done from the Chart’s parent directory.

Here is an example:

[email protected]:~$ ls -l
total 20
-rwx------ 1 devops devops 11248 Sep 27 01:24 get_helm.sh
drwxr-xr-x 4 devops devops  4096 Sep 27 01:48 helm-codetryout
drwxr-xr-x 3 devops devops  4096 Sep 26 14:43 snap
[email protected]:~$
[email protected]:~$
[email protected]:~$ helm package helm-codetryout
Successfully packaged chart and saved it to: /home/devops/helm-codetryout-0.1.0.tgz
[email protected]:~$

Verifying a package using helm lint

Your package can be verified using the lint command. The syntax is:

helm lint <PACKAGE-NAME>

Lets try out:

[email protected]:~$ helm lint helm-codetryout-0.1.0.tgz
==> Linting helm-codetryout-0.1.0.tgz
[INFO] Chart.yaml: icon is recommended

1 chart(s) linted, 0 chart(s) failed
[email protected]:~$

Notes:

If you are looking for steps for creating your first help Chart, here is a simple example: https://codetryout.com/helm-chart-how-to-create/