nexus3 添加kubernetes的Helm格式支持

背景

由于最近在搞云原生的工作,在kubernetes中安装东西的时候采用了google的helm来管理kubernetes的配置资源和分发,那么就需要有一个统一的服务来管理helm镜像选了好久,最后决定用nexus3社区提供的helm支持,下面会写出本次的操作流程

准备工作

  1. nexus 3.13.0-01
  2. nexus-repository-helm 的安装包

本次主要操作,下载源码,通过maven构建为nexus3的插件包 复制插件到下面目录里,需要新建nexus-repository-helm/0.0.2这两个目录

<nexus_dir>/system/org/sonatype/nexus/plugins/nexus-repository-helm/0.0.2/nexus-repository-helm-0.0.2.jar

在这个
<nexus_dir>/system/org/sonatype/nexus/assemblies/nexus-core-feature/3.13.0-01/nexus-core-feature-3.13.0-01-features.xml
配置文件中添加下面的配置

<feature version="0.0.2" prerequisite="false" dependency="false">nexus-repository-helm</feature>

再添加下面的配置

    <feature name="nexus-repository-helm" description="org.sonatype.nexus.plugins:nexus-repository-helm" version="0.0.2">
        <details>org.sonatype.nexus.plugins:nexus-repository-helm</details>
        <bundle>mvn:org.sonatype.nexus.plugins/nexus-repository-helm/0.0.2</bundle>
    </feature>

添加之后重启服务即可

重启之后可以在管理页面上新加helm的proxy类型代理仓库,这里拿gitlab来做测试

添加下面的地址

https://charts.gitlab.io/

选择存储
然后在本地测试

helm repo add gitlab  http://10.100.100.11/repository/helm-gitlab-charts/

helm repo update

helm fetch  gitlab/auto-deploy-app

出现问题

出现下面错误

$ helm fetch gitlab/auto-deploy-app
Error: Failed to fetch http://10.100.100.11/auto-deploy-app-0.2.4.tgz : 404 Not Found
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值