您的位置 首页 kubesphere

The connection to the server lb.kubesphere.local:6443 was refused – did you specify the right host or port?

 

The connection to the server lb.kubesphere.local:6443 was refused - did you specify the right host or port?

由于断电停机,kubernetes集群挂掉,使用任意kubectl 命令会报错:The connection to the server ip:6443 was refused - did you specify the right host or port,重启kubelet也不能恢复,etcd读取数据报错,数据文件损坏

ectd 在读取数据时发生了错误,导致启动失败。继而api-server也无法启动

etcd的数据文件损坏了,要做数据恢复,而我这是实验环境,没搞etcd备份就只能重置集群了

注意,线上使用etcd一定要做高可用和定期备份,否则就悲催了

如何排查解决:The connection to the server <HOST>:6443 was refused - did you specify the right host or port - 知乎 (zhihu.com)

欢迎来撩 : 汇总all

白眉大叔

关于白眉大叔linux云计算: 白眉大叔

热门文章