对于使用kubernetes 进行开发的人员来说helm是很方便的

构建nexus helm plugin

git clone https://github.com/sonatype-nexus-community/nexus-repository-helm.git

mvn  clean package

安装配置插件

官方介绍了好几种方法 ,有临时方法以及很久方式,永久方法有两种
a. copy deploy 目录, 插件加载成功,但是没有helm proxy 的选项
b. copy plugins + 配置
我选择的是b
以下为官方说明,按照操作即可:

Copy the bundle into <nexus_dir>/system/org/sonatype/nexus/plugins/nexus-repository-helm/0.0.1/nexus-repository-helm-0.0.1.jar
Make the following additions marked with + to <nexus_dir>/system/org/sonatype/nexus/assemblies/nexus-core-feature/3.x.y/nexus-core-feature-3.x.y-features.xml
<feature prerequisite="false" dependency="false">nexus-repository-rubygems</feature>
<feature prerequisite="false" dependency="false">nexus-repository-helm</feature>
<feature prerequisite="false" dependency="false">nexus-repository-gitlfs</feature>
</feature> And <feature name="nexus-repository-helm" description="org.sonatype.nexus.plugins:nexus-repository-helm" version="0.0.1">
<details>org.sonatype.nexus.plugins:nexus-repository-helm</details>
<bundle>mvn:org.sonatype.nexus.plugins/nexus-repository-helm/0.0.1</bundle>
</feature>

使用插件

因为墙的问题,我使用了阿里云的helm 仓库 https://kubernetes.oss-cn-hangzhou.aliyuncs.com/charts

  • 添加仓库
helm repo add myhelm http://hostip:8081/repository/helm-proxy/
  • 查找helm
helm search myhelm/wordpress
NAME CHART VERSION APP VERSION DESCRIPTION
myhelm/wordpress 0.8.8 4.9.4 Web publishing platform for building blogs and …
  • 安装helm 应用
helm install myhelm/wordpress
NAME: undercooked-lynx
LAST DEPLOYED: Mon May 28 19:45:24 2018
NAMESPACE: default
STATUS: DEPLOYED RESOURCES:
==> v1/Secret
NAME TYPE DATA AGE
undercooked-lynx-mariadb Opaque 2 1s
undercooked-lynx-wordpress Opaque 2 1s ==> v1/ConfigMap
NAME DATA AGE
undercooked-lynx-mariadb 1 1s
undercooked-lynx-mariadb-tests 1 1s ==> v1/PersistentVolumeClaim
NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE
undercooked-lynx-mariadb Bound pvc-9c033e0b-626c-11e8-87fd-025000000001 8Gi RWO hostpath 1s
undercooked-lynx-wordpress Pending hostpath 1s ==> v1/Service
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
undercooked-lynx-mariadb ClusterIP 10.103.123.26 <none> 3306/TCP 1s
undercooked-lynx-wordpress LoadBalancer 10.98.149.4 localhost 80:31079/TCP,443:31156/TCP 1s ==> v1beta1/Deployment
NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE
undercooked-lynx-mariadb 1 1 1 0 1s
undercooked-lynx-wordpress 1 1 1 0 1s ==> v1/Pod(related)
NAME READY STATUS RESTARTS AGE
undercooked-lynx-mariadb-6b9d6595f6-rx8nd 0/1 Init:0/1 0 1s
undercooked-lynx-wordpress-75b44799fb-zv2qv 0/1 ContainerCreating 0 1s NOTES:
1. Get the WordPress URL: NOTE: It may take a few minutes for the LoadBalancer IP to be available.
Watch the status with: 'kubectl get svc --namespace default -w undercooked-lynx-wordpress' export SERVICE_IP=$(kubectl get svc --namespace default undercooked-lynx-wordpress -o jsonpath='{.status.loadBalancer.ingress[0].ip}')
echo http://$SERVICE_IP/admin 2. Login with the following credentials to see your blog echo Username: user
echo Password: $(kubectl get secret --namespace default undercooked-lynx-wordpress -o jsonpath="{.data.wordpress-password}" | base64 --decode)
  • proxy 效果

总结

总的来说对于集成了docker npm maven 来说还是比较好的,只是不支持host 模式,实际上开源的
chartmuseum 就挺好的,同时也有UI界面

参考资料

https://github.com/sonatype-nexus-community/nexus-repository-helm
https://yq.aliyun.com/articles/159601

 
 
 
 

nexus helm proxy 集成&&问题解决的更多相关文章

  1. Sonatype Nexus 服务启动失败问题解决

    Sonatype Nexus 服务启动失败问题解决 问题前述: 近日在开发机本机安装了 Oracle 数据库快捷版 11g2 之后,重启电脑后发现本机的maven代理服务无法访问. 现象 通过 Win ...

  2. nexus pip proxy config

    nexus pip proxy config config for linux touch config touch ~/.pip/pip.conf content [global] index-ur ...

  3. nexus yum 私服集成

      nexus 集成了 yum 私服使用起来还是比较简单的 配置 yum proxy 实际使用我们可能需要配置centos 以及epel 的源 centos可以用http://mirror.cento ...

  4. com.itnba.maya.domel.Diaoyantimu_$$_javassist_1 cannot be cast to javassist.util.proxy.Proxy错误问题解决方法

    控制台报错显示: com.itnba.maya.domel.Diaoyantimu_$$_javassist_1 cannot be cast to javassist.util.proxy.Prox ...

  5. nexus https proxy

  6. nexus bower 集成使用

    创建nexus bower proxy host 比较简单,如下图: 安装bower && bower-nexus resolver npm install -g bower-nexu ...

  7. Linux 安装配置maven3.0 以及搭建nexus私服

    http://carvin.iteye.com/blog/785365 一.软件准备 1.apache-maven-3.0-bin.tar.gz 下载地址:http://www.apache.org/ ...

  8. nexus 3.17.0 做为golang 的包管理工具

    nexus 3.17.0 新版本对于go 包管理的支持是基于go mod 的,同时我们也需要一个athens server 然后在nexus 中配置proxy 类型的repo 参考配置 来自官方的配置 ...

  9. Nexus3 集成 crowd 插件

    公司使用的软件开发和协作工具为 Atlassian 系列软件,所以统一使用 crowd 来实现统一登录(SSO). crowd 配置 具体操作细节见我之前写的 Atlassian 系列软件安装(Cro ...

随机推荐

  1. hdu 5111 树链剖分加函数式线段树

    这题说的是给了两棵树,各有100000 个节点,然后Q个操作Q<=50000; 每个操作L1 R1 L2 R2.因为对于每棵树都有一个与本棵树其他点与众不同的值, 最后问 在树上从L1到R1这条 ...

  2. 爬虫概要及web微信请求分析

    一.爬虫概要 1.网络爬虫是什么 百度百科:网络爬虫(又被称为网页蜘蛛,网络机器人,在FOAF社区中间,更经常的称为网页追逐者),是一种按照一定的规则,自动地抓取万维网信息的程序或者脚本.另外一些不常 ...

  3. “System.Runtime.InteropServices.COMException (0x80070422): 无法启动服务”解决方法

    应用程序中发生了无法处理的异常.如果单击“退出”,应用程序将立即关闭.无法启动服务,原因可能是已被禁用或其相关联设备没有启动.(异常来自HRESULT:0X80070422).点击详细内容:有关调用实 ...

  4. poj2262 Goldbach's Conjecture

    poj2262 Goldbach's Conjecture 用欧拉筛把素数筛出来,再枚举一下. #include<iostream> #include<cstdio> #inc ...

  5. ubuntu16.04+七彩虹GTX1060的NVIDIA驱动+Cuda8.0+cudnn5.1+tensorflow+keras搭建深度学习环境【学习笔记】【原创】

    平台信息:PC:ubuntu16.04.i5.七彩虹GTX1060显卡 作者:庄泽彬(欢迎转载,请注明作者) 说明:参考了网上的一堆的资料搭建了深度学习的开发环境,下班在宿舍折腾了好几个晚上才搞定,写 ...

  6. springboot属性类自动加载配置文件中的值

    springboot属性类自动加载配置文件中的值,如Person类加载在yml中配置的name,age等属性值,可以通过如下步骤获取: 类上添加@ConfigurationProperties注解,p ...

  7. SQL Server2012创建约束图解

            SQLServer中有五种约束:Primary Key约束.Foreign Key约束.Unique约束.Default约束和Check约束  1 . Primary Key 约束 在 ...

  8. 树状数组 Binary Indexed Tree/Fenwick Tree

    2018-03-25 17:29:29 树状数组是一个比较小众的数据结构,主要应用领域是快速的对mutable array进行区间求和. 对于一般的一维情况下的区间和问题,一般有以下两种解法: 1)D ...

  9. python学习笔记(locust性能测试模块)

    locust是基于python的性能测试工具.支持python2.7及其以上的版本.相对于主流的LR与Jmeter工具使用的方式不一样.locust是通过编写python代码来完成性能测试的. 通过L ...

  10. Pave the Parallelepiped CodeForces - 1007B (计数)

    大意: 给定A,B,C, 求有多少个三元组$(a,b,c)$, 满足$a \le b \le c$, 且以若干个$(a,b,c)$为三边的长方体能填满边长(A,B,C)的长方体. 暴力枚举出$A,B, ...