Creating Helm Chart

Himanshi Kabra
2 min readSep 7, 2022

In Kubernetes, for the sake of deploying and managing, the Helm chart is useful and is a package manager that deployed the charts. The chart is known as the packaged application.

Helm Chart creation for a webserver

mkdir myweb

Inside this folder or directory, we need to create a chart.yml file, that contains the version, description, etc.

cd myweb
notepad Chart.yaml

The details of the chart file look similarly

All the resource files in the chart are stored in the templates folder hence create a folder and store the suitable resources in it.

cd myweb/
mkdir templates

Now, I have placed the resource files that launch the webserver in this templates folder.

The next step is to turn this helm chart into a package so that we can publish it in the artifacthub.io

mkdir charts/
helm package myweb -d charts/

Now, you can see that the package is created in the charts/ directory.

The next step is to create an index.yml file for the helm chart that contain the details about the chart.

helm repo index charts/

The index.yml file will be created with the details.

The next step is to push your code to the Github repository.

The next step is to publish your helm chart you need to host it on the page. For this, you can simply host it on the Github pages. Go to settings>>github page>>save(with master).

Now, the final step is to publish your helm chart at artifacthub.io. For this, you need to create your account at artifacthub.io and log in to publish your helm chart.

Finally, click on to add the repository and paste the link of the Github page hosted before. And successfully your helm chart will be published.

--

--