setting up helm chart manually via github pages
Let say you would like to deploy your helm chart via github. So first thing you need to have your repository configured.
To do that, you need to expose your github pages. Go to your repository -> Settings -> pages. Set the deployment options to main branch as shown here:-
You will noticed that the live site is
This will be url to use for configuration later.
Next prepare your chart - you can clone your sample chart from here: https://github.com/mitzenjeremywoo/podinfo-chart
Run the following command from your terminal.
git clone https://github.com/mitzenjeremywoo/podinfo-chart
cd podinfo-chart/charts
Let's package your charts by running the following command:
helm package podinfo
You would have a podinfo*.tgz file.
Prepare the index.yaml file. We are using https://mitzenjeremywoo.github.io/podinfo-chart to serve out our helm charts - as you can see here with the commands below:-
helm repo index . --url https://mitzenjeremywoo.github.io/podinfo-chart
mv *.tgz ../
mv *.yaml ../
the zipped helm chart and index.yaml should be in the root of your github. As shown in the diagram below:-
commit the tgz and index.yaml to your repository and push it to github.
Then to test it out with helm, simply run the following commands:-
helm repo add my-repo https://mitzenjeremywoo.github.io/podinfo-chart
To deploy your helm chart, simple run (you can reuse the values.yaml from your cloned repository)
helm install my my-repo/podinfo -f .\values.yaml
Comments