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

 

 


 

 

转载于:https://www.cnblogs.com/Dev0ps/p/11258539.html

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值