我正在尝试创建Google Cloud Deployment Manager配置来部署和管理Google Cloud Container群集。到目前为止,创建用于创建集群的配置有效,但更新失败。如果我更改设置,脚本的执行将失败并显示错误消息我无法解密:
code: RESOURCE_ERROR
location: /deployments/my-first-cluster/resources/my-first-test-cluster-setup
message:
'{"ResourceType":"container.v1.cluster","ResourceErrorCode":"400","ResourceErrorMessage":{"code":400,"message":"Invalid
JSON payload received. Unknown name \"cluster\": Cannot find field.","status":"INVALID_ARGUMENT","details":[{"@type":"type.googleapis.com/google.rpc.BadRequest","fieldViolations":[{"description":"Invalid
JSON payload received. Unknown name \"cluster\": Cannot find field."}]}],"statusMessage":"Bad
Request","requestPath":"https://container.googleapis.com/v1/projects/*****/zones/europe-west1-b/clusters/my-first-cluster"}}'
相关配置:
resources:
- name: my-first-test-cluster-setup
type: container.v1.cluster
properties:
zone: europe-west1-b
cluster:
name: my-first-cluster
description: My first cluster setup
nodePools:
- name: my-cluster-node-pool
config:
machineType: n1-standard-1
initialNodeCount: 1
autoscaling:
enabled: true
minNodeCount: 3
maxNodeCount: 5
management:
autoUpgrade: true
autoRepair: true
答案 0 :(得分:6)
看起来这是Deployment Manager中的一个错误,这意味着它无法更新GKE集群。报告错误here。它有着同样奇怪的未知名称" cluster"'你看到的消息。
票证上没有关于变通方法或解决方案的建议。
我们在更新不同的群集属性时遇到了同样的问题。