helm3安装neuxs3
发表于:2025-12-03 作者:千家信息网编辑
千家信息网最后更新 2025年12月03日,1、环境介绍2、安装nexushelm search repo nexushelm pull stable/sonatype-nexustar xvf sonatype-nexus-1.21.2.tg
千家信息网最后更新 2025年12月03日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安全错误
数据库的锁怎样保障安全
怎么转db数据库
问道如何改服务器密码
丰台戴尔服务器回收报价
雾服务器是什么情况
国内哪个服务器最好
毅嘉网络技术
企业网络安全解决方案股票
武汉天健军卫网络技术有限公司
如何学习数据库建模
网络安全海报2018
网络安全法第四十二条规则
数据库的完整和安全性
小米9的网络技术
通信中软件开发工作职责
分库分表数据库设计
tpm 服务器
网络安全信息分为几层
安捷伦数据库密钥
井冈山大学网络安全中心
数据库表有哪几种锁
大学网络技术学
建立党委网络安全责任制
计算机网络技术就业论文
图书馆数据库解释
基本的软件开发流程图
服务器里安装mysql
简述数据库设计与管理的基本步骤
数据库中字段宽度由什么设定
软件开发分组管理
网络安全培训佛山