Helm3 使用 harbor 作为 charts 仓库

安装 harbor,要注意开启 Helm Charts 功能

https://blog.csdn.net/mshxuyi/article/details/108217568

创建 自定义 Charts

https://blog.csdn.net/mshxuyi/article/details/114163543 

接下文 

1、打包

[root@master helmfile]# helm package myapp

2、查看,生成一个 tgz 格式的文件

[root@master helmfile]# ll
总用量 4
drwxr-xr-x 3 root root  79 2月  26 04:21 myapp
-rw-r--r-- 1 root root 831 2月  26 04:31 myapp-0.1.0.tgz

3、安装 push 插件

helm plugin install https://github.com/chartmuseum/helm-push

# 查看已成功
[root@jenkins ~]# helm plugin list
NAME	VERSION	DESCRIPTION                      
push	0.9.0  	Push chart package to ChartMuseum

 4、创建一个 charts 项目 

5、添加仓库

helm repo add harbor https://harbor.mshxuyi.com/chartrepo/library

6、查看

[root@master helmfile]# helm repo list
NAME    	URL                                         
aliyuncs	https://apphub.aliyuncs.com                 
harbor  	https://harbor.mshxuyi.com/chartrepo/library

7、上传

[root@master helmfile]# helm push myapp-0.1.0.tgz harbor --username tomma --password Tomma@123
Pushing myapp-0.1.0.tgz to harbor_charts...
Done.

9、查看

10、安装

# 更新
helm repo update

# 安装
helm install myapp harbor/myapp

# 成功
NAME: myapp
LAST DEPLOYED: Fri Feb 26 04:53:21 2021
NAMESPACE: default
STATUS: deployed
REVISION: 1
TEST SUITE: None

11、相关错误解决

x509: certificate signed by unknown authority,安装的 harbor 是自建的证书,但是还是出现证书校验失败,https://blog.csdn.net/mshxuyi/article/details/114654740

 解决方法:

把之前生成的 ca.crt 粘贴到 /etc/pki/tls/certs/ca-bundle.crt 最后一行
  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值