搭建helm私服ChartMuseum


介紹

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)離線安裝

下載離線包:https://github.com/chartmuseum/helm-push/releases/download/v0.7.1/helm-push_0.7.1_darwin_amd64.tar.gz

新建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

 

 


 

 


免責聲明!

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



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