1、添加仓库

Helm3 使用 Nexus 作为 charts 仓库_运维

2、设置

Helm3 使用 Nexus 作为 charts 仓库_上传_02

3、添加仓库

# 非匿名访问
helm repo add nexus http://admin:admin123@192.168.2.107:8081/repository/helm-repo/

# 如果开启匿名访问方式:不需要输入 管理和密码
helm repo add nexus http://192.168.2.107:8081/repository/helm-repo/


# 查看,已成功添加
[root@jenkins ~]# helm repo list
NAME URL
harbor https://harbor.mshxuyi.com/chartrepo/library
nexus http://192.168.2.107:8081/repository/helm-repo/

 4、打包

# 创建一个 charts
helm create myapp

# 打包
helm package myapp

 5、安装上传插件

helm plugin install --version master https://gitee.com/mirrors_sonatype-nexus-community/helm-nexus-push.git

6、上传

helm nexus-push nexus myapp-0.1.0.tgz -u admin -p admin123

7、查看,已成功上传

Helm3 使用 Nexus 作为 charts 仓库_运维_03