k8s The connection to the server localhost:8080 was refused-did you specify the right host or port?
kubectl get podThe connection to the server localhost:8080 was refused - did you specify the right host or port?出现这个问题 原因:是由于kubectl命令需要使用kubernetes-admin来运行,但是从节点没有这个文件。解决方法1. 主节点将其【/etc/kubernetes/admin.conf】文件拷贝到从节点相同目录下scp /etc/kubernetes/a.