The connection to the server 127.0.0.1:6443 was refused - did you specify the right host or port? 报错解决
在部署K3S集群的过程中,部署完之后server端能够查看到在集群内的所有节点,如下图
在agent端查看的时候,却画风一变,提示端口或者主机错误,如下图
root@gpu-2-3:/home/sutpc# kubectl get nodes
E0725 17:10:48.642284 3433 memcache.go:265] couldn't get current server API group list: Get "https://127.0.0.1:6443/api?timeout=32s": dial tcp 127.0.0.1:6443: connect: connection refused
E0725 17:10:48.645636 3433 memcache.go:265] couldn't get current server API group list: Get "https://127.0.0.1:6443/api?timeout=32s": dial tcp 127.0.0.1:6443: connect: connection refused
E0725 17:10:48.646647 3433 memcache.go:265] couldn't get current server API group list: Get "https://127.0.0.1:6443/api?timeout=32s&#