[英]Cannot connect to Kubernetes cluster on container engine
I am trying to deploy a python app (a REST API) on GCP using the guide here https://cloud.google.com/endpoints/docs/quickstart-container-engine . 我正在尝试使用https://cloud.google.com/endpoints/docs/quickstart-container-engine中的指南在GCP上部署python应用程序(REST API)。 As a part of that, I spun up a k8s cluster and got it's credentials.
作为其中的一部分,我启动了一个k8s群集并获得了它的凭据。 Now I can't access it:
$ 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
The server doesn't recognize any of the common resources. 现在我无法访问它:
$ 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
服务器无法识别任何公共资源。 What am I doing wrong? 我究竟做错了什么?
This turned out to be an intermittent error as pointed out. 事实证明,这是一个间歇性的错误。 Worked fine on a retry.
在重试时工作得很好。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.