二进制安装The connection to the server localhost:8080 was refused - did you specify the right host
工作节点执行kubectlgetnode/pods/apply/相关的集群请求主节点命令会报错Theconnectiontotheserverlocalhost:8080wasrefused-didyouspecifytherighthostorport原因:kubectl默认从~/.kube/config配置文件获取访问kube-apiserver地址、证书、用户名等信息,如果没有配置该文件会读