Hello readers, I’ll be covering about the details of How to deploy a Helm chart repository on GitHub in detail.
2.Helm Chart dummies
Chart Repository Structure
An HTTP server that stores an index.yaml file and perhaps some packed charts is known as a chart repository.
When you’re prepared to distribute your charts, the best option is to submit them to a repository for charts.
The index file is the most important part of any repository for charts.The index file, which is a YAML file with the name index.yaml, provides metadata on each package, including details about the associated Chart.yaml files.Each item in the index file also directs the user to the.tgz file that contains the chart package.
In this case, the index file would contain information about one chart, the mychart.
Create a new repository on your Github account.
Clone the repository using commang
git clone https://github.com/atisha-shaurya/helm-chart.git
Create a helm chart by using command.
helm create mychart
Package the helm repo as .tgz (using
helm package charts/mychart -d docs/“.Substitute
charts/mychart with a path to a chart root folder
YAML file index.yaml serves as the index file.The contents of a chart’s Chart.yaml file are among the package’s metadata that are included in this file.An index file is a requirement for a legitimate chart repository.Each chart in the chart repository is described in the index file.When provided a local directory that contains packaged charts, the helm repo index command will create an index file based on that directory.
A sample index file looks like this:
Push the git repository on GitHub
git add . git commit -m “Initial commit” git push origin master
Refresh the home page on the GitHub helm-repo by returning there. Now that the new commit has been successfully uploaded onto GitHub, we can verify this by looking at this page.
Everyone interested in your charts must set up their own Helm client in order to share your brand-new repository.
Repositories are controlled with the $ helm repo commands on the client side as well
Now you can add the repo:
helm repo add <INTERNAL_NAME> https://<YOUR_ORG_OR_USERNAME>.github.io/<REPO_NAME>
helm repo add mychart https://raw.githubusercontent.com/Atisha-Shaurya/Helm-chart/master/
Verify the helm chart repo using the command
helm repo list
To update my local helm repo cache, I’ll now issue the command helm repo update.
Now that I’ve performed the command helm search repo mychart, I may search the local helm repository.
There is only one result displayed here, and it is the custom chart we previously created, are now hosting in our GitHub repository.
The blog explained how to deploy a Helm chart repository on GitHub.I hope you enjoyed this practical instruction. Motivate yourself to deploy more repositories, link them, and utilize them while looking up more examples on Google.