Publishing HELM Chart on K8S
Rani Chowdary Mandepudi
Graduate Research Assistant @ TReNDSLab |MSCS at GSU | Ex-Full Stack Developer at Inncircles Technologies
In Kubernetes, the Helm chart is useful and is a package manager that deployed the charts. The chart is known as the packaged application and it will be useful for the deployment of the pods.
Here, I am going to create a Helm Chart for a webserver
mkdir myweb
Create a directory or folder to create a chart.yml file that contains the versions and descriptions of the deployment.
cd myweb
notepad chart.yml
Chart file
apiVerison: v1
name: myweb
version: 0.1
appVersion:1.2
Description: This is my apache server package
All the resource files in the chart have to be kept in the templates folder. Hence, create a folder and store the suitable resources in it.
cd myweb/
mkdir templates
Now, turn this helm chart into the package and publish it in the artifacthub.io
mkdir charts/
helm package myweb -d charts/
Now, create an index. Yml file for the helm chart to store the details of it
helm repo index charts/
Now, push your complete code into the Github repository
Then, you need to publish your helm chart, hence you need to host that on the page. For hosting. Go to settings>>github page>>save(with master). Later you will be obtaining the URL similar to this - https://mandepudirani.github.io/k8shelm/
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.