【问题标题】:GCE Instance Not Found未找到 GCE 实例
【发布时间】:2016-06-21 18:37:44
【问题描述】:

我正在尝试使用 CoreOS 作为基本操作系统在 GCE 上设置 Kubernetes 集群。但是当我尝试通过设置--cloud-provider--cloud-config 标志使集群成为multizone 集群时遇到以下问题。

以下是主节点上 API Server 的输出:

Jun 15 09:22:09 cos-000-pub-pvt-master.c.project-id.internal kubelet-wrapper[1098]: E0615 09:22:09.790068    1098 gce.go:2380] Failed to retrieve instance: "10.0.0.2"
Jun 15 09:22:09 cos-000-pub-pvt-master.c.project-id.internal kubelet-wrapper[1098]: E0615 09:22:09.790125    1098 gce.go:2414] getInstanceByName/multiple-zones: failed to get instance 10.0.0.2; err: instance not found
Jun 15 09:22:09 cos-000-pub-pvt-master.c.project-id.internal kubelet-wrapper[1098]: E0615 09:22:09.790151    1098 kubelet.go:1131] Unable to construct api.Node object for kubelet: failed to get external ID from cloud provider: instance not found

运行kubectl get nodes 时没有输出,但运行kubectl --namespace kube-system get pods 时我看到API 服务器、控制器管理器、调度程序和每个节点的每个代理。虽然我可以看到它们每 45-60 秒重新启动一次。

GCE配置文件如下:

[GLOBAL]
multizone=true

如果我遗漏了一些可以帮助我知道的内容。

【问题讨论】:

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


    【解决方案1】:

    似乎是 --hostname-override 标志导致了这个问题。我已将其删除,master 现在可以在 GCE API 中找到该节点。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-09-14
      • 1970-01-01
      • 2016-08-09
      • 2017-11-26
      • 1970-01-01
      • 2017-11-20
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多