之前的nexus3在vm上,需要迁移到k8s上
- 需要保留文件数据,先配置一个NFS服务器
查看一下有没有别的nfs需要用到的端口
rpcinfo -p nfs-ip
还是会有很多莫名的错误
最终建议直接关闭防火墙
systemctl stop firewalld
systemctl disable firewalld
- 在k8s上部署一个新的nexus3
- 迁移nexus3
伸缩改成0,关闭容器
把旧的nexus3的数据文件夹 (…/nexus/sonatype-work/nexus3) scp到NFS服务器上
给目录付权限 nexus3是 uid 200 的
chown -hR 200 目录
如果直接启动,启动后日志会有各种各样的错误,我删除了几个文件和目录
伸缩改成1,启动容器,完成
https://github.com/sonatype/docker-nexus3/blob/main/README.md#notes
https://community.sonatype.com/t/problem-afer-upgrading-to-3-42-0-could-not-lock-user-prefs/9568