首页 > 解决方案 > Google Cloud Build 超时 10 分钟

问题描述

我尝试使用“新容器映像”选项从 BitBucket 存储库在 GKE 中创建部署。

创建部署 构建容器镜像

但我收到ERROR: Timed out when my container is building。

执行细节 超时错误

另外,我尝试设置参数,但没有帮助:

gcloud config set app/cloud_build_timeout 1600
gcloud config set builds/timeout 1600
gcloud config set container/build_timeout 1600

如果我无权使用 GKE Workloads 管道访问cloudbuild.yaml配置文件,如何更改 Cloud Build ws GKE 中的限制?

标签: google-kubernetes-enginegoogle-cloud-build

解决方案


内置功能使用您无法覆盖的默认参数。

如果您要构建的容器太长,请触发 Cloud Build 以使用适当的超时时间单独构建您的容器,然后在 GKE 上部署此容器。

在同一个 Cloud Build 中同时构建和部署工业解决方案。


推荐阅读