Helm is a powerful package manager for Kubernetes, which helps in the deployment and management of applications. It streamlines the installation and management of Kubernetes applications and provides a mechanism for versioning and rollbacks. In this article, we will discuss how to download Helm charts and save them locally.
Downloading Helm Charts
To download a Helm chart, you need to use the helm fetch
command. This command downloads the chart and saves it to your local machine.
The basic syntax of the helm fetch
command is as follows:
$ helm fetch [chart-name] --untar=true --untardir=[destination-directory]
Here, [chart-name]
is the name of the chart you want to download. The --untar=true
option tells Helm to extract the chart from the archive, and the --untardir
option specifies the directory where the chart should be saved.
For example, to download the stable/nginx-ingress chart and save it to the /tmp
directory, you would use the following command:
$ helm fetch stable/nginx-ingress --untar=true --untardir=/tmp
This command downloads the stable/nginx-ingress chart and saves it to the /tmp/nginx-ingress
directory.
Downloading Specific Chart Version
Sometimes you may want to download a specific version of a chart. To do this, you need to specify the version number with the helm fetch
command.
For example, to download version 1.36.0 of the stable/nginx-ingress chart, you would use the following command:
$ helm fetch stable/nginx-ingress --version 1.36.0 --untar=true --untardir=/tmp
This command downloads version 1.36.0 of the stable/nginx-ingress chart and saves it to the /tmp/nginx-ingress
directory.
Downloading Chart from Specific Repository
By default, Helm searches for charts in the official Helm repository. However, you can also download charts from other repositories by specifying the repository URL with the --repo
option.
For example, to download the Prometheus Operator chart from the Prometheus Helm repository, you would use the following command:
$ helm fetch prometheus-community/kube-prometheus-stack --version 14.0.0 --repo https://prometheus-community.github.io/helm-charts --untar=true --untardir=/tmp
This command downloads version 14.0.0 of the Prometheus Operator chart from the Prometheus Helm repository and saves it to the /tmp/kube-prometheus-stack
directory.
In this article, we discussed how to download Helm charts and save them locally. We saw how to download a chart, how to download a specific version of a chart, and how to download a chart from a specific repository. We hope this article was helpful in getting you started with Helm.
Related Searches and Questions asked:
That's it for this post. Keep practicing and have fun. Leave your comments if any.