helm3安装neuxs3
发表于:2026-11-02 作者:千家信息网编辑
千家信息网最后更新 2026年11月02日,1、环境介绍2、安装nexushelm search repo nexushelm pull stable/sonatype-nexustar xvf sonatype-nexus-1.21.2.tg
千家信息网最后更新 2026年11月02日helm3安装neuxs3
1、环境介绍
2、安装nexus
helm search repo nexus
helm pull stable/sonatype-nexus
tar xvf sonatype-nexus-1.21.2.tgz
helm install nexus ./sonatype-nexus
kubectl get pod
kubectl describe pod nexus-sonatype-nexus-79b5865bbc-4lb49
从而得知在请求pvc,所以创建pv
vim pv.yaml #这里采用的hostpathapiVersion: v1kind: PersistentVolumemetadata: name: nexus-pvspec: capacity: storage: 10Gi volumeMode: Filesystem accessModes: - ReadWriteOnce persistentVolumeReclaimPolicy: Retain hostPath: path: /helm/nexus
mkdir -p /helm/nexus #在worker节点创建相应的目录kubecel apply -f pv.yaml
查看pod状态
kubectl get pod

kubectl logs nexus-sonatype-nexus-79b5865bbc-4lb49#会报错,是因为容器的名字重复"nexus nexus-proxy"Error from server (BadRequest): a container name must be specified for pod nexus-sonatype-nexus-79b5865bbc-4lb49, choose one of: [nexus nexus-proxy]
kubectl edit deploy nexus-sonatype-nexus
修改nexus-proxy为nexus
再次查看pod状态,还是有问题

kubectl logs nexus-sonatype-nexus-64c75f5786-gtvlg Java HotSpot(TM) 64-Bit Server VM warning: Cannot open file /nexus-data/log/jvm.log due to No such file or directoryWarning: Cannot open log file: /nexus-data/log/jvm.logWarning: Forcing option -XX:LogFile=/tmp/jvm.logUnable to update instance pid: Unable to create directory /nexus-data/instances/nexus-data/log/karaf.log (No such file or directory)Unable to update instance pid: Unable to create directory /nexus-data/instances
从而得知是目录/nexus-data/instances没有权限
kubectl get deploy nexus-sonatype-nexus -oyaml
是因为我们创建的pv没有权限,在worker节点给与刚才创建pv的目录777权限
chmod 777 /helm/nexus/
kubectl delete pod nexus-sonatype-nexus-64c75f5786-gtvlg #删掉原来的pod
完美起来了。
kubectl get svc
然后会发现端口不通
telnet 192.18.10.12 30070Trying 192.18.10.12...telnet: connect to address 192.18.10.12: Connection refused
vim /root/nexus/sonatype-nexus/values.yaml
可以看到8080并不是nexus的真正端口,而真正的端口是
所以又要修改service文件
kubectl edit svc nexus-sonatype-nexus
再访问即可进入
用户名是admin,密码是admin123
完美结束!
权限
目录
端口
状态
节点
再次
名字
容器
密码
文件
环境
用户
用户名
还是
问题
会报
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
为想互联网科技怎么样
高科技互联网
互联网科技资迅
互联网科技小额贷款
伴你行互联网科技有限公司
互联网金融科技委员会
左右互联网络科技
顺网科技2021年互联网排名
互联网公司会议桌创意科技软装饰
科技互联网的估值
武汉健翔互联网络科技有限公司
健康食品互联网创新科技园项目
亳州好赞互联网科技有限公司
威龙国际互联网科技公司
山东有哪些互联网科技公司
山东大美朱楼互联网科技有限公司
米泉互联网科技专业怎么样
好易买互联网科技
平安好医生打造互联网科技医疗
互联网高科技绘画
互联网的科技
互联网科技巨头监管
狮子座互联网科技
互联网科技论坛
镁科技互联网资讯平台
互联网科技资金流入
上海创道互联网络科技有限公司
互联网科技企业文化
科技发展第三阶段互联网时代
武汉亿视互联网科技有限公司