【发布时间】: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