ChartMuseum is an open-source, easy to deploy, Helm Chart Repository server
Today we are going to install the chartmuseum repo in k8s deployment.
PREREQUISITES:
=====
1. Working ki8s cluster
2. Helm 2.16 installed with tiller pod deployed
3. Working internet connection 😊
Lets start with the actual deployment:
===
1. Add the helm repo
helm repo add stable https://kubernetes-charts.storage.googleapis.com
2. Install the charmuseum chart as below:
helm install stable/chartmuseum --set env.open.DISABLE_API=false
3. Check the deployment using
PODS:
kubectl get pods -o wide
SERVICE:
kubectl get svc -o wide
4. Add the "sample" repo to chartmuseum
helm repo add sample http://<service_ip_chartmuseum>:8080
UPDATE repo:
helm repo update
Check repo list:
helm repo list
5. To push he helm packages to charmuseum repo:
Install the helm plugin:
helm plugin install https://github.com/chartmuseum/helm-push
Push the helm package using below command:
helm push app-0.1.0.tgz sample
or
curl --data-binary "@app1-0.1.0.tgz" http://<service_ip_chartmuseum>/api/charts -v
6. To check the charts added/available in the chartmuseum repo
curl -X GET http://<service_ip_chartmuseum>/api/charts -v
7. To delete the charts from the repo
curl -X DELETE http://<service_ip_chartmuseum>/api/charts/mlbxapp1/0.1.0 -v
You can find the pod deployed for the chartmuseum as below shown in the example:
Enjoy the Learning....