5

我正在嘗試創建Google雲部署管理器配置來部署和管理Google雲容器羣集。到目前爲止,創建配置來創建羣集是可行的,但是更新失敗。如果我更改設置,腳本執行失敗並顯示錯誤消息我無法破譯:Google雲部署管理器更新容器羣集

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 

回答

4

它看起來這是在部署管理器中的錯誤這意味着它無法更新GKE羣集。該錯誤報告爲here。它具有您所看到的同樣奇怪的'未知名稱'羣集''消息。

有關解決方法或解決方案的票證沒有任何建議。

當更新不同的集羣屬性時,我們已經看到了同樣的問題。

+0

嗨,@Ben!你能看看這個問題嗎? https://stackoverflow.com/q/47149954/7644562 –