Helm is a package manager for kubernetes. It provides the same features that rpm or apt provides to linux for Kubernetes.
Installing
Helm is porovided as a single binary
Grab the latest release here https://github.com/helm/helm/releases.
I am using v3.13.0
for this guide. You can confirm which version you have using this command:
|
|
Creating a new chart
To create a new chart, use the helm create
command. In this example, we are creating a chart named app
. We can also create a chart in a directory by providing a path.
|
|
The created helm chart will come with default
Edit the values in the yml file to reflect your requirements.
To package the charts, use this command:
|
|
To add an existing helm repository, use this command:
|
|
And update to pull the latest helm updates
|
|
To add an existing helm repository that is protected by a password:
|
|
Useful chart commands
|
|
Pushing helm charts to a repo
|
|
Deleting helm repo:
|
|
Resolving https://kubernetes-charts.storage.googleapis.com
is not a valid chart repository in helm 2
Helm versions prior to 2.17.0
have the deprecated https://kubernetes-charts.storage.googleapis.com/index.yaml
as the default stable repository, which no longer resolves. The new repo is https://charts.helm.sh/stable
. You can choose to:
- Use the -
-stable-repo-url
argument to specify the new repository:
|
|
- Use the
--skip-refresh
argument and replace the stable repo:
|
|
- Upgrade helm to 2.17.0 or later.