在gcloud中configurationKubectl

我用三个节点在gcloud中创build了集群。 到目前为止这么好。之后,我试图运行pod ..这是给错误..我发现kubectl没有configuration正确..当我尝试运行pod时得到以下错误..欣赏任何帮助在这方面。

错误:无法从nodejs.yaml读取编码对象:无法连接到服务器来处理“pod”:无法从服务器读取版本:获取http:// localhost:8080 / api :dial tcp 127.0.0.1: 8080:连接被拒绝

谢谢

如果创build集群后,您的kubectlconfiguration不正确,则可以始终运行gcloud container clusters get-credentials NAME (请参阅configurationkubectl )来恢复工作的kubeconfig文件。