Github as Helm repository

Originally posted in my blog

For my personal projects, I use Github as a Helm repository. This is a simple way to share Helm charts with the community. In this post, I’ll show you how to create a Helm repository using Github Pages either for personal …


This content originally appeared on DEV Community and was authored by Boris Quiroz

Originally posted in my blog

For my personal projects, I use Github as a Helm repository. This is a simple way to share Helm charts with the community. In this post, I'll show you how to create a Helm repository using Github Pages either for personal use or for your organization.

Assumptions

This post will assume your already:

  • Know what kubernetes is
  • Have a basic understanding of helm
  • Have a Github account and repository
  • Have coded a Helm chart

Steps

Having all the above already in place, there are some things we need to do before we can use Github as a Helm repository. In particular, we need to enable Github Pages for our repository and add at least one index.html file to it. According to this documentation, the index.html file shouldn't be needed, but in reallity it is necessary for Helm to recognize the repository as a Helm repository.

Once having that and assuming our first chart is ready, we need to start packaging and adding it to the repository. The following steps will guide you through the process. All the directory structure assumed below is based on my own repository.

  1. Package the chart
$ helm package mychart
$ mv mychart-0.1.0.tgz helm/charts
  1. Update the index
$ helm repo index helm/charts --url https://boris.github.io/kubernetes/helm/charts
$ git add helm/charts/*
$ git commit -m "Add mychart-0.1.0"
$ git push

With the above we're now ready to add our repository to Helm and install our chart:

$ helm repo add boris https://boris.github.io/kubernetes/helm/charts
$ helm repo list
NAME                    URL
ealenn                  https://ealenn.github.io/charts
bitnami                 https://charts.bitnami.com/bitnami
kubernetes-dashboard    https://kubernetes.github.io/dashboard/
argo                    https://argoproj.github.io/argo-helm
boris                   https://boris.github.io/kubernetes/helm/charts/
$ helm install mychart boris/mychart


This content originally appeared on DEV Community and was authored by Boris Quiroz


Print Share Comment Cite Upload Translate Updates
APA

Boris Quiroz | Sciencx (2024-06-28T02:39:43+00:00) Github as Helm repository. Retrieved from https://www.scien.cx/2024/06/28/github-as-helm-repository/

MLA
" » Github as Helm repository." Boris Quiroz | Sciencx - Friday June 28, 2024, https://www.scien.cx/2024/06/28/github-as-helm-repository/
HARVARD
Boris Quiroz | Sciencx Friday June 28, 2024 » Github as Helm repository., viewed ,<https://www.scien.cx/2024/06/28/github-as-helm-repository/>
VANCOUVER
Boris Quiroz | Sciencx - » Github as Helm repository. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/06/28/github-as-helm-repository/
CHICAGO
" » Github as Helm repository." Boris Quiroz | Sciencx - Accessed . https://www.scien.cx/2024/06/28/github-as-helm-repository/
IEEE
" » Github as Helm repository." Boris Quiroz | Sciencx [Online]. Available: https://www.scien.cx/2024/06/28/github-as-helm-repository/. [Accessed: ]
rf:citation
» Github as Helm repository | Boris Quiroz | Sciencx | https://www.scien.cx/2024/06/28/github-as-helm-repository/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.