gpt4 book ai didi

terraform - GKE 节点池状态停留在“PROVISIONING”状态

转载 作者:行者123 更新时间:2023-12-02 22:44:49 27 4
gpt4 key购买 nike

我正在尝试使用 Terraform 创建 GKE 节点池

resource "google_container_node_pool" "node_pool" {
provider = google-beta
name = var.node_pool_name
location = var.region
cluster = var.cluster_name
node_count = var.k8s_workers_count

node_config {
machine_type = var.k8s_workers_shape

image_type = "COS"
service_account = google_service_account.sa.email
labels = {
name = var.node_pool_name
}
metadata = {
disable-legacy-endpoints = "true"
}
workload_metadata_config {
node_metadata = "GKE_METADATA_SERVER"
}
oauth_scopes = [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/userinfo.email"
]
}

management {
auto_repair = true
auto_upgrade = true
}
}

3m TF控制台返回错误消息后

Error: Error reading NodePool "pool1" from cluster "cluster-1": Nodepool "pool1" has status "PROVISIONING" with message ""

Gcloud cli 返回的状态确实是 PROVISIONING

config:
diskSizeGb: 100
diskType: pd-standard
imageType: COS
labels:
name: pool1
machineType: n1-standard-4
metadata:
disable-legacy-endpoints: 'true'
oauthScopes:
- https://www.googleapis.com/auth/cloud-platform
- https://www.googleapis.com/auth/userinfo.email
serviceAccount:
shieldedInstanceConfig:
enableIntegrityMonitoring: true
initialNodeCount: 2
instanceGroupUrls:
- https://www.googleapis.com/compute/v1/projects/
management:
autoRepair: true
autoUpgrade: true
maxPodsConstraint:
maxPodsPerNode: '110'
name: pool1
podIpv4CidrSize: 24
selfLink: XXX
status: PROVISIONING
version: 1.13.11-gke.14

但是 console.cloud.google.com 显示状态为绿色,并且集群允许我创建部署等。云英雄有什么想法吗?

更新:2019 年 12 月 7 日下午 1:48 - 我能够运行 TF 脚本。不确定 Google 是否修复了该问题,还是我只是运气好。

最佳答案

https://status.cloud.google.com/ 上有关于此问题的一些信息:

Newly created GKE node pools in asia-east1-a, asia-east2-c, asia-northeast1-a, asia-northeast2-c, asia-south1-a, asia-southeast1-a, australia-southeast1-a, europe-north1-c, europe-west1-c, europe-west2-a, europe-west3-a, europe-west4-a, europe-west6-c, northamerica-northeast1-c, southamerica-east1-a, us-central1-b, us-east1-a, us-east1-d, us-east2-a, us-east4-b, us-west1-a and us-west2-c are created successfully but incorrectly shown as PROVISIONING. A rollback underway will resolve this for new node pools.

关于terraform - GKE 节点池状态停留在“PROVISIONING”状态,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59208923/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com