Lab 4 - Helm Repositories
A key aspect of providing an application means sharing with others. Sharing can be direct counsumption (by users or in CI/CD pipelines) or as a dependency for other charts. If people can't find your app then they can't use it.
A means of sharing is a chart repository, which is a location where packaged charts can be stored and shared. As the chart repository only applies to Helm, we will just look at the usage and storage of Helm charts.
Using charts from a public repository
Helm charts can be available on a remote repository or in a local environment/repository. The remote repositories can be public like Bitnami Charts or IBM Helm Charts, or hosted repositories like on Google Cloud Storage or GitHub. Refer to Helm Chart Repository Guide for more details. You can learn more about the structure of a chart repository by examining the chart index file in this lab.
In this part of the lab, we show you how to install the guestbook
chart from the Helm101 repo.
Check the repositories configured on your system:
The output should be similar to the following:
Note: Chart repositories are not installed by default with Helm v3. It is expected that you add the repositories for the charts you want to use. The Helm Hub provides a centralized search for publicly available distributed charts. Using the hub you can identify the chart with its hosted repository and then add it to your local respoistory list. The Helm chart repository like Helm v2 is in "maintenance mode" and will be deprecated by November 13, 2020. See the project status for more details.
Add
helm101
repo:Should generate an output as follows:
You can also search your repositories for charts by running the following command:
Install the chart
As mentioned we are going to install the
guestbook
chart from the Helm101 repo. As the repo is added to our local respoitory list we can reference the chart using therepo name/chart name
, in other wordshelm101/guestbook
. To see this in action, you will install the application to a new namespace calledrepo-demo
.If the
repo-demo
namespace does not exist, create it using:Now install the chart using this command:
The output should be similar to the following:
Check that release deployed as expected as follows:
Conclusion
This lab provided you with a brief introduction to the Helm repositories to show how charts can be installed. The ability to share your chart means ease of use to both you and your consumers.
Last updated