harbor helm 倉庫使用


harbor 已經支持helm 私服倉庫了,還是比較方便的

安裝

  • 下載在線安裝包
wget https://storage.googleapis.com/harbor-releases/release-1.6.0/harbor-online-installer-v1.6.0.tgz
  • 配置harbor

    harbor.cfg 文件

目前主要配置hostname  使用自己服務器的ip即可
  • 生成docker-compose file
sudo ./install.sh   --with-clair --with-chartmuseum

使用

  • 登陸
默認密碼 admin/Harbor12345


說明

可以使用的helm 上傳插件 helm-push

  • 安裝helm
curl https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get | bash
  • 安裝push 插件
helm init 
helm plugin install https://github.com/chartmuseum/helm-push
  • 添加repo

   helm repo add --username=admin --password=Passw0rd myrepo https://xx.xx.xx.xx/chartrepo
   or 添加特定倉庫
   helm repo add --username=admin --password=Passw0rd myrepo https://xx.xx.xx.xx/chartrepo/myproject

helm repo list
NAME URL
stable  https://kubernetes-charts.storage.googleapis.com
local http://127.0.0.1:8879/charts
myrepo  http://ipaddress/chartrepo/library
  • 創建demo
helm create app
  • push
helm push --username=admin --password=Harbor12345 app myrepo
  • 查看信息

說明

monocular 是一個不錯的UI選擇,同時支持使用helm 進行安裝

參考資料

https://github.com/goharbor/harbor/blob/master/docs/installation_guide.md
https://github.com/goharbor/harbor/blob/master/docs/user_guide.md#manage-helm-charts
https://docs.helm.sh/using_helm/#installing-helm
https://github.com/helm/chartmuseum
https://github.com/helm/charts


免責聲明!

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



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