【问题标题】:Cannot connect to Kubernetes cluster on container engine无法连接到容器引擎上的 Kubernetes 集群
【发布时间】:2017-02-08 14:25:57
【问题描述】:

我正在尝试使用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 服务器无法识别任何公共资源。我做错了什么?

【问题讨论】:

  • 我会说:重新开始:看起来您错过了设置步骤或设置错误(然后很可能与 etcd 相关)。
  • 就是这样。当我删除集群并再次创建集群时,它运行良好。

标签: kubernetes google-cloud-platform gcloud google-kubernetes-engine


【解决方案1】:

正如所指出的,这原来是一个间歇性错误。重试时工作正常。

【讨论】:

    猜你喜欢
    • 2019-06-10
    • 2017-11-22
    • 2023-03-14
    • 2016-07-25
    • 1970-01-01
    • 2021-08-26
    • 2020-06-10
    • 1970-01-01
    • 2018-12-28
    相关资源
    最近更新 更多