介紹
ChartMuseum是一個用Go(Golang)編寫的開源Helm Chart Repository服務器
ChartMuseum是一個用Go(Golang)編寫的開源Helm Chart Repository服務器,支持雲存儲后端,包括Google雲存儲,Amazon S3,Microsoft Azure Blob存儲,阿里雲OSS存儲,Openstack對象存儲和Oracle雲基礎架構 對象存儲。部署ChartMuseum
1、chart地址:https://github.com/helm/charts/tree/master/stable/chartmuseum
2、編寫custom.yaml文件
env: open: #開啟api DISABLE_API: false ALLOW_OVERWRITE: true secret: BASIC_AUTH_USER: myuser BASIC_AUTH_PASS: mypass resources: limits: cpu: 1 memory: 2Gi requests: cpu: 80m memory: 64Mi persistence: enabled: true size: 10Gi storageClass: "managed-nfs-storage"
3、安裝
helm install --name my-chartmuseum -f custom.yaml stable/chartmuseum
4、安裝push插件(https://github.com/chartmuseum/helm-push)
1)在線安裝
helm plugin install https://github.com/chartmuseum/helm-push
2)離線安裝
新建helm-push目錄將離線包解壓到這個目錄里:
mkdir -p /root/.helm/plugins/helm-push tar -xf helm-push_0.7.1_darwin_amd64.tar.gz
5、使用
添加倉庫
helm repo add chartmuseum http://<NodePort_ip>:<NodePort_port> --username myuser --password mypass
上傳chart
helm push mychart/ chartmuseum