问题解决:The connection to the server xxxxx:6443 was refused - did you specify the right host or port?

具体排查过程是真的忘了,前后开关了十几个网页。

1、查看kubelet是否正常 systemctl status kubelet
2、kubelet未启动的情况,查看kubelet日志 journalctl -xefu kubelet
3、不过我这里是启动的
4、中间跳过 n 步,发现是 apiserver 没起来
5、中间又跳过 n 步,发现是 etcd 没起来导致 apiserver 没起来
6、中间又跳过 n 步,尝试备份后移除 cd /var/lib/etcd 目录下的文件,因为是在异常情况下断电导致的数据异常
7、重启

至于是否有副作用,不晓得

猜你喜欢

转载自blog.csdn.net/qq_43762191/article/details/124904586