k8s报错:The connection to the server 192.168.10.128:6443 was refused - did you specify the right host
本次原因就是swapoff分区未关闭。查看containerd是否启动。查看kubelet 是否正常。swapoff是否该关闭。
报错详情:
[root@k8s-master-01 ~]# kubectl get no
E0601 13:49:25.403858 1309 memcache.go:265] couldn’t get current server API group list: Get “https://192.168.10.128:6443/api?timeout=32s”: dial tcp 192.168.10.128:6443: connect: connection refused
E0601 13:49:25.404153 1309 memcache.go:265] couldn’t get current server API group list: Get “https://192.168.10.128:6443/api?timeout=32s”: dial tcp 192.168.10.128:6443: connect: connection refused
E0601 13:49:25.408368 1309 memcache.go:265] couldn’t get current server API group list: Get “https://192.168.10.128:6443/api?timeout=32s”: dial tcp 192.168.10.128:6443: connect: connection refused
E0601 13:49:25.411620 1309 memcache.go:265] couldn’t get current server API group list: Get “https://192.168.10.128:6443/api?timeout=32s”: dial tcp 192.168.10.128:6443: connect: connection refused
E0601 13:49:25.417276 1309 memcache.go:265] couldn’t get current server API group list: Get “https://192.168.10.128:6443/api?timeout=32s”: dial tcp 192.168.10.128:6443: connect: connection refused
The connection to the server 192.168.10.128:6443 was refused - did you specify the right host or port?
查看containerd是否启动
systemctl status containerd
查看kubelet 是否正常
systemctl status kubelet
swapoff是否该关闭
本次原因就是swapoff分区未关闭
更多推荐
所有评论(0)