报错详情:
[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分区未关闭

Logo

K8S/Kubernetes社区为您提供最前沿的新闻资讯和知识内容

更多推荐