无法连接到容器引擎上的 Kubernetes 集群
Cannot connect to Kubernetes cluster on container engine
我正在尝试使用此处的指南 https://cloud.google.com/endpoints/docs/quickstart-container-engine 在 GCP 上部署 python 应用程序(REST API)。作为其中的一部分,我启动了一个 k8s 集群并获得了它的凭证。现在我无法访问它:
$ kubectl get no
the server doesn't have a resource type "nodes"
$ kubectl version
Client Version: version.Info{Major:"1", Minor:"5", GitVersion:"v1.5.2", GitCommit:"08e099554f3c31f6e6f07b448ab3ed78d0520507", GitTreeState:"clean", BuildDate:"2017-01-12T04:57:25Z", GoVersion:"go1.7.4", Compiler:"gc", Platform:"darwin/amd64"}
Error from server (Forbidden): the server does not allow access to the requested resource
服务器无法识别任何公共资源。我做错了什么?
正如所指出的那样,这是一个间歇性错误。重试时工作正常。
我正在尝试使用此处的指南 https://cloud.google.com/endpoints/docs/quickstart-container-engine 在 GCP 上部署 python 应用程序(REST API)。作为其中的一部分,我启动了一个 k8s 集群并获得了它的凭证。现在我无法访问它:
$ kubectl get no
the server doesn't have a resource type "nodes"
$ kubectl version
Client Version: version.Info{Major:"1", Minor:"5", GitVersion:"v1.5.2", GitCommit:"08e099554f3c31f6e6f07b448ab3ed78d0520507", GitTreeState:"clean", BuildDate:"2017-01-12T04:57:25Z", GoVersion:"go1.7.4", Compiler:"gc", Platform:"darwin/amd64"}
Error from server (Forbidden): the server does not allow access to the requested resource
服务器无法识别任何公共资源。我做错了什么?
正如所指出的那样,这是一个间歇性错误。重试时工作正常。