一、啟用harbor的Chart倉庫服務
# ./install.sh --with-chartmuseum
啟用后,默認創建的項目就帶有helm charts功能了。
二、安裝push插件
插件地址: https://github.com/chartmuseum/helm-push 安裝命令: helm plugin install https://github.com/chartmuseum/helm-push 也可以下載離線包 解壓到對應用戶的環境目錄下 /root/.local/share/helm/plugins/helm-push/
三、添加repo
helm repo add --username admin --password xxxx harbor https://harbor.xxx.com/chartrepo/library /chartrepo/是必須帶的
四、推送與安裝Chart
推送 helm push mysql-1.4.0.tgz --username=admin --password=xxxxx https://harbor.xxx.com/chartrepo/library 安裝 helm install web --version 1.4.0 myrepo/demo 如果下載失敗先更新repo helm repo update