Use github repo as helm chart repository
Goal
In order to be able use Helm charts the “normal” way, it is need to buid your own helm repository. The goal of this post is to transform a github repo into a helm repo.
Key Aspects
- Save the helm charts on github mainly for the RPI Kubernetes cluster
- Figure out a way to access them
Build the chart and upload it to the helm repo
For that purpose I used by kubeplay repo where I had helm charts and container ready
git clone -b arm32v7 git@github.com:jbrette/kubeplay.git
cd kubeplay/
helm package charts/kubeplay-arm32v7/ --app-version 0.1.0 --destination ./helmrepo/
cd helmrepo/
helm repo index .
git add .
git commit -m "New chart version"
git push
Use helm repo and chart
Let’s access the simple helm repo designed for
helm repo add kubeplay 'https://raw.githubusercontent.com/jbrette/kubeplay/arm32v7/helmrepo/'
helm repo list
NAME URL
stable https://kubernetes-charts.storage.googleapis.com
local http://127.0.0.1:8879/charts
kubeplay https://raw.githubusercontent.com/jbrette/kubeplay/arm32v7/helmrepo/
helm search kubeplay
NAME CHART VERSION APP VERSION DESCRIPTION
kubeplay/kubeplay-arm32v7 0.1.0 0.1.0 A Helm chart for Kubernetes
Conclusion
- Still has to find how to get Travis-CI to build the chart automatically