问题解决:The connection to the server xxxxx:6443 was refused - did you specify the right host or port?
Posted 看,未来
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了问题解决: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、重启
至于是否有副作用,不晓得
以上是关于问题解决:The connection to the server xxxxx:6443 was refused - did you specify the right host or port?的主要内容,如果未能解决你的问题,请参考以下文章
k8s The connection to the server was refused 问题解决记录
问题解决The connection to the server localhost:8080 was refused
问题解决The connection to the server localhost:8080 was refused
Error connecting to the Service Control Manager: 拒绝访问 Mongodb问题-解决
Yii “CDbConnection failed to open the DB connection: could not find driver"解决办法
问题解决Got permission denied while trying to connect to the Docker daemon socket at 。。。