自建helm仓库

一、安装chartmuseum

https://github.com/helm/chartmuseum
https://blog.csdn.net/weixin_34226182/article/details/86278522

二、启动服务

export TENCENT_CLOUD_COS_SECRET_ID=xxx
export TENCENT_CLOUD_COS_SECRET_KEY=xxx


chartmuseum --debug --port=8080 \
  --storage="tencent" \
  --storage-tencent-bucket="xxx" \
  --storage-tencent-prefix="" \
  --storage-tencent-endpoint="xxx"

三、基本操作

a. 创建资源
 
helm create gateway
 
b. 上传(使用helm-push 创建)
 
helm plugin install https://github.com/chartmuseum/helm-push
 
helm repo add chartmuseum http://localhost:8080
 
helm push gateway/ chartmuseum
 
c. 更新仓库
helm repo update

d. 搜索资源
 
helm search repo chartmuseum/
NAME                   CHART VERSION    APP VERSION    DESCRIPTION                
chartmuseum/gateway    0.1.0            1.16.0         A Helm chart for Kubernetes
chartmuseum/linux      0.1.0            1.16.0         A Helm chart for Kubernetes
chartmuseum/nginx      0.0.1            1.16.0         nginx helm for kubernetes
 
    
e. 安装
 
helm install chartmuseum/gateway

 

posted @ 2020-11-16 18:40  腐汝  阅读(777)  评论(0编辑  收藏  举报