搭建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文件
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | 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、安装
1 | helm install --name my-chartmuseum -f custom.yaml stable /chartmuseum |
4、安装push插件(https://github.com/chartmuseum/helm-push)
1)在线安装
1 | helm plugin install https: //github .com /chartmuseum/helm-push |
2)离线安装
新建helm-push目录将离线包解压到这个目录里:
1 2 | mkdir -p /root/ .helm /plugins/helm-push tar -xf helm-push_0.7.1_darwin_amd64. tar .gz |
5、使用
添加仓库
1 | helm repo add chartmuseum http: // <NodePort_ip>:<NodePort_port> --username myuser --password mypass |
上传chart
1 | helm push mychart/ chartmuseum |
harbor
#安装chartmuseum
curl -L https://github.com/docker/compose/releases/download/1.24.0-rc1/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose chmod +x /usr/local/bin/docker-compose cd harbor cp harbor.yml.tmpl harbor.yml ./install.sh --with-chartmuseum docker-compose down -v docker-compose up -d
#安装helm push 插件
helm plugin install https://github.com/chartmuseum/helm-push
#添加helm仓库
helm repo add --username admin --password Harbor12345 harbor http://172.16.11.116/chartrepo/library helm repo update
#上传
helm push banggood-chart-1.1.0.tgz harbor
如对您有帮助,支持下呗!
微信

支付宝

【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· 阿里巴巴 QwQ-32B真的超越了 DeepSeek R-1吗?
· 【译】Visual Studio 中新的强大生产力特性
· 【设计模式】告别冗长if-else语句:使用策略模式优化代码结构
· AI与.NET技术实操系列(六):基于图像分类模型对图像进行分类
2018-07-28 logstash解耦之redis消息队列
2018-07-28 oracle数据库迁移
2018-07-28 Redhat 平台下LVM管理说明