使用harbor做為helm Chart倉庫


一、啟用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 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM