I am trying to create a Google Cloud Deployment Manager configuration to deploy and manage a Google cloud container cluster. While creating a configuration is being created to create a cluster, however, the update is not performed. If I change the setting, the script will fail with an error message that I cannot decrypt:
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"}}'
Appropriate configuration:
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
source share