Nexus 3 安装 Kubernetes Helm 插件

一、背景介绍

       Nexus 3.10 默认没有集成 Helm 插件,不利于基于 Helm 开发部署 K8S 应用

       高兴的是,Nexus 社区发布了一款 Nexus 3 Helm 插件,我们可以自行手动安装

       GitHub 地址:https://github.com/sonatype-nexus-community/nexus-repository-helm

二、 安装步骤

2.1   编译插件

        环境准备:Apache Maven 3.3.3+ / Java 8+

# git clone https://github.com/sonatype-nexus-community/nexus-repository-helm.git
# cd nexus-repository-helm
# mvn clean package

        编译成功后,将在 target 目录下生成 nexus-repository-helm-0.0.1.jar

2.2   安装插件

       假设 Nexus 安装根目录为 $NEXUS_INSTALL_DIR

       在 $NEXUS_INSTALL_DIR/system/ 下建立文件夹,命名为 custom

       将上述 jar 文件拷贝至 $NEXUS_INSTALL_DIR/system/custom/

       编辑 $NEXUS_INSTALL_DIR/etc/karaf/startup.properties

       在末尾追加:

reference\:file\:custom/nexus-repository-helm-0.0.1.jar = 200

2.3   重启 Nexus 使其生效

# systemctl restart nexus

2.4   配置 Helm Proxy 仓库

       创建一个 Helm 仓库,名字随意,代理地址填写:https://kubernetes-charts.storage.googleapis.com/

       确定即可

2.5   Helm 客户端使用 Nexus Helm 仓库 

        这里,我的仓库地址是:https://192.168.12.129:8443/repository/helm-proxy/,就这样添加仓库

# helm repo add nexus https://192.168.12.129:8443/repository/helm-proxy/

        测试是否可用

# helm search nexus/

        

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值