Creating, Developing, and Testing a Helm Chart
Packaging and Distributing the Chart
If everything works as expected, we can package the chart using the helm package command, which creates a versioned chart archive file (.tgz). The syntax is as follows:
helm package [CHART_PATH] [FLAGS]
To package our todo-chart chart, we can run the following command:
helm package $HOME/todo-chart -d $HOME/todo-chart-dist
The version of the packaged chart is determined by the version field in the Chart.yaml file. However, you can change this by using the --version flag: helm package $HOME/todo-chart --version 0.2.0 -d $HOME/todo-chart-dist.
We can verify that the chart was packaged correctly by listing the contents of the output directory:
ls -lh $HOME/todo-chart-dist
Everything is ready to distribute the chart. We are using a private Harbor registry to host our Helm chart, so we need to log in to the registry first:
helm registry login $MASTER_PUBLIC_IP:30003 -u admin -p Harbor12345
Then, we can push the chart to the Harbor registry using the helm push command. The syntax is as follows:
Helm in Practice
Designing, Deploying, and Operating Kubernetes Applications at ScaleEnroll now to unlock current content and receive all future updates for free. Your purchase supports the author and fuels the creation of more exciting content. Act fast, as the price will rise as the course nears completion!
Hurry! This limited time offer ends in:
To redeem this offer, copy the coupon code below and apply it at checkout:
