错误:(gcloud.run.deploy)spec.template.spec.containers.resources.limits.cpu:为 cpu 指定的值无效

问题描述 投票:0回答:1

尝试使用 VS CodeGoogle Cloud Code 扩展在 Google Cloud Run 上部署时遇到此错误。我该如何解决这个问题?

错误:(gcloud.run.deploy) spec.template.spec.containers.resources.limits.cpu:值无效 指定用于CPU。对于指定值,maxScale 不得超过 10.

google-cloud-platform vscode-extensions google-cloud-run
1个回答
0
投票

虽然我没有通过UI找到解决方案,但是可以通过命令行这样解决:

gcloud run deploy ... --max-instances 10

maxScale(最大实例)的默认值似乎是 100。

© www.soinside.com 2019 - 2024. All rights reserved.