【问题标题】:GKE cluster upgrade failed with "DeployPatch failed" errorGKE 集群升级失败,出现“DeployPatch failed”错误
【发布时间】:2022-10-13 13:43:53
【问题描述】:

我的集群升级失败:

gcloud beta container operations describe "operation-sdfsdfsdf" --zone us-central1

clusterConditions:
- canonicalCode: UNKNOWN
  message: DeployPatch failed
detail: DeployPatch failed
endTime: '2022-06-30T12:36:48.246662261Z'
error:
  code: 2
  message: DeployPatch failed
name: operation-sdfsdfsdf
operationType: UPGRADE_NODES
progress:
  metrics:
  - intValue: '7'
    name: NODES_TOTAL
  - intValue: '1'
    name: NODES_FAILED
  - intValue: '6'
    name: NODES_COMPLETE
  - intValue: '7'
    name: NODES_DONE
  - intValue: '2454'
    name: NODE_PDB_DELAY_SECONDS
selfLink: https://container.googleapis.com/v1beta1/projects/xxxxxx/locations/us-central1/operations/operation-sdfsdfsdf
startTime: '2022-06-30T10:36:14.709547456Z'
status: DONE
statusMessage: DeployPatch failed
targetLink: https://container.googleapis.com/v1beta1/projects/xxxxxx/locations/us-central1/clusters/mycluster/nodePools/mypool
zone: us-central1

这是我唯一能找到同样错误的东西:Fail to enable Workload identity on GKE

我也搜索了github。这个错误在谷歌的文档中是没有的。

我还在节点上看到零错误日志。

【问题讨论】:

  • 请分享有关您的集群的更多信息。您是否具有执行更新的适当权限?您是否能够在集群中启用 Workload Identity?你在使用地形吗?
  • 我也有这个问题。我是项目编辑,我无法从 1.22 升级到 1.24 或 1.23。我正在尝试通过控制台升级。

标签: google-cloud-platform google-kubernetes-engine


【解决方案1】:

你设法解决这个问题吗?我面临同样的问题。 我可以在我的大多数项目中启用工作负载标识,但不能在某些项目中启用它。我尝试重新创建 Kubernetes 集群。使用预先启用的工作负载身份创建新集群不起作用。在没有工作负载标识的情况下创建集群有效,但随后启用工作负载标识再次失败。我在这里找不到任何明显的相关性。现在,我的 staging 和一半的生产项目都支持工作负载标识,而其余的则不支持。

任何帮助或指导将不胜感激。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-02-28
    • 2018-11-14
    • 1970-01-01
    • 2021-12-17
    • 2021-01-20
    • 1970-01-01
    • 2020-05-26
    • 1970-01-01
    相关资源
    最近更新 更多