51工具盒子

依楼听风雨
笑看云卷云舒,淡观潮起潮落

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)


赞(1)
未经允许不得转载:工具盒子 » The connection to the server lb.kubesphere.local:6443 was refused – did you specify the right host or port?