Packaging a Helm chart
While Helm charts follow a common file structure, they should be packaged in order to be easily distributed. Charts are packaged in tgz
archives. While this archives can be manually created by using the tar
bash utility or an archive manager, Helm provides the helm package
command to simplify this task. The syntax of the helm package
command is shown here:
$ helm package [CHART_NAME] [...] [flags]
The helm package
command is run against a local chart directory. If this command is successful, it will generate a tgz
archive with the following file format:
$CHART_NAME-$CHART_VERSION.tgz
The archive can then be distributed by pushing to a chart repository, which is a task that is explored further in Chapter 5, Building Your First Helm Chart.
The helm package
command includes every file under a chart directory. While this is often the preferred behavior, it may not always be desired if the directory contains files that are not essential to Helm. One...