首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Gcloud创建节点池将永远挂在没有节点的自动修复中。

Gcloud创建节点池将永远挂在没有节点的自动修复中。
EN

Server Fault用户
提问于 2020-06-04 16:30:01
回答 1查看 2.7K关注 0票数 0

向现有集群添加新的节点池失败,没有节点注册。

用于添加节点池的命令如下(项目名称已更改):

代码语言:javascript
复制
gcloud container --project my-project node-pools create hm-pool --cluster ds-cluster-west4 --zone europe-west4-c --node-version 1.16.9-gke.2 --machine-type n1-highmem-4 --image-type COS --disk-type pd-standard --disk-size 100 --metadata disable-legacy-endpoints=true --scopes logging-write,monitoring,pubsub,service-control,service-management,storage-full,taskqueue,trace --num-nodes 2 --enable-autoupgrade --enable-autorepair --max-surge-upgrade 1 --max-unavailable-upgrade 0

我收到以下错误消息

代码语言:javascript
复制
This will enable the autorepair feature for nodes. Please see https://cloud.google.com/kubernetes-engine/docs/node-auto-repair for more information on node autorepairs.
Creating node pool hm-pool...done.
ERROR: (gcloud.container.node-pools.create) Operation [<Operation
 clusterConditions: [<StatusCondition
 message: 'All cluster resources were brought up, but: only 0 nodes out of 2 have registered; cluster may be unhealthy.'>]
 detail: 'All cluster resources were brought up, but: only 0 nodes out of 2 have registered; cluster may be unhealthy.'
 endTime: '2020-06-04T15:17:05.810921209Z'
 name: 'operation-1591282299021-26295b28'
 nodepoolConditions: []
 operationType: OperationTypeValueValuesEnum(CREATE_NODE_POOL, 7)
 selfLink: 'https://container.googleapis.com/v1/projects/473462597806/zones/europe-west4-c/operations/operation-1591282299021-26295b28'
 startTime: '2020-06-04T14:51:39.021046271Z'
 status: StatusValueValuesEnum(DONE, 3)
 statusMessage: 'All cluster resources were brought up, but: only 0 nodes out of 2 have registered; cluster may be unhealthy.'
 targetLink: 'https://container.googleapis.com/v1/projects/473462597806/zones/europe-west4-c/clusters/ds-cluster-west4/nodePools/hm-pool'
 zone: 'europe-west4-c'>] finished with error: All cluster resources were brought up, but: only 0 nodes out of 2 have registered; cluster may be unhealthy.

在控制台上,我看到了一条消息:“节点池中的自动修复节点。”我看到hm-pool正在更新。池中有0个节点。

我做错了什么?

EN

回答 1

Server Fault用户

回答已采纳

发布于 2020-06-07 16:45:35

问题是新节点池的规范中缺少应用于集群的标记。我使用gcloud compute instances describe --format="value[delimiter=','](tags.items) INSTANCE-NAME从现有节点中提取标记信息,并将输出作为节点池创建命令的--tags选项的参数。然后成功地创建了节点池。

票数 1
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/1020056

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档