Rancher 2.5.9的使用心得~

鬼谷子叔叔 - 2026-01-29 15:44

常见问题

关闭了rancher服务,集群还能正常工作吗?

可以

关闭了rancher服务,可以重启集群服务器吗?

可以

更新rancher的证书的方法

进rancher的k3s集群,进入System项目,进入资源>密文>证书界面,删除里面的过期证书。

重启rancher容器

等待rancher与各个集群同步

如果集群状态变成Unavailable状态,就多等一会儿,一般情况下会自己好的。

如果等了好久还是Unavailable状态,可以使用集群注册命令重新注册一下任意一个管理节点。

如果发现cattle-system的cluster-register报错“无法连接https://localhost:6443”,可以更新集群的kube_apiserver证书。

如果发现cattle-system的cattle-cluster-agent报错“MountVolume.SetUp failed for volume "cattle-credentials" : secret "cattle-credentials-29ba118" not found”,可以进入cattle-cluster-agent服务的数据卷里找到cattle-credentials重新选择新的cattle-credentials密文。

如果发现cattle-system的cattle-node-agent报错“MountVolume.SetUp failed for volume "cattle-credentials" : secret "cattle-credentials-29ba118" not found”,可以进入cattle-node-agent服务的数据卷里找到cattle-credentials重新选择新的cattle-credentials密文。