简体   繁体   English

无法连接到容器引擎上的Kubernetes集群

[英]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.

相关问题 Kubernetes集群从Google Container Engine中消失了 - Kubernetes cluster disappeared from Google Container Engine 撤消对谷歌容器引擎上的kubernetes群集的访问权限 - Revoke access to kubernetes cluster on google container engine 无法连接到 Kubernetes 集群上的远程 postgreSQL 数据库 - Cannot connect to remote postgreSQL database on Kubernetes cluster 无法连接到部署在 kubernetes 集群上的服务器 - Cannot connect to the server deployed on kubernetes cluster Graylog无法连接到Kubernetes集群中的Elasticsearch - Graylog cannot connect to Elasticsearch in Kubernetes cluster 无法连接到Kubernetes群集中的mongodb服务 - Cannot connect to a mongodb service in a Kubernetes cluster Angular、NGINX 无法连接到 Kubernetes 集群上的后端 - Angular, NGINX cannot connect to backend on Kubernetes cluster 如何在谷歌容器引擎中为Kubernetes集群创建防火墙 - How to create firewall for kubernetes cluster in google container engine 从ACS引擎Kubernetes群集中提取图像并连接到它 - Pull image from and connect to the ACS Engine Kubernetes Cluster 如何从运行在同一 Kube.netes 集群中的容器连接到 Docker,它在 Kube.netes 集群中的主机虚拟机上运行? - How do I connect to Docker, running on host VMs in a Kubernetes cluster from a container running in the same Kubernetes cluster?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM