Nexus 3 安装 Kubernetes Helm 插件 - shida's blog - CSDN博客

一、背景介绍

       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/

        


Original url: Access
Created at: 2019-05-05 21:07:25
Category: default
Tags: none

请先后发表评论
  • 最新评论
  • 总共0条评论