我已按照谷歌云平台指南中的步骤进行操作,但仍然收到权限错误。这表明调用者没有权限。请问我做错了什么。
这是失控的gcloud config list
region = us-central1
zone = us-central1-f
[core]
account = <gmail-account>
disable_usage_reporting = True
project = <project-id>
Your active configuration is: [default]
这是它引发的错误
ERROR: (gcloud.app.deploy) Error Response: [13] Flex operation projects/<project-id>/regions/europe-west1/operations/error [INTERNAL]: An internal error occurred while processing task /appengine-flex-v1/insert_flex_deployment/flex_create_resources>2020-07-28T15:45:31.962Z49210.jv.11: Deployment Manager operation <project-id>/operation-... errors: [code: "RESOURCE_ERROR"
location: "/deployments/aef-default-..../resources/aef-default-...."
message: "{\"ResourceType\":\"compute.beta.regionAutoscaler\",
\"ResourceErrorCode\":\"403\",
\"ResourceErrorMessage\":{\"code\":403,
\"message\":\"The caller does not have permission\",
\"status\":\"PERMISSION_DENIED\",
\"statusMessage\":\"Forbidden\",
\"requestPath\":\"https://compute.googleapis.com/compute/beta/projects/<project-id>/regions/europe-west1/autoscalers\",
\"httpMethod\":\"POST\"}}"
请检查您的项目配额 https://console.cloud.google.com/iam-admin/quotas通常,当您的项目没有足够的 IP 或 VM(App Engine Flex 使用 Compute Engine VM)以及您的扩展策略时,就会引发此错误。app.yaml
正在超出配额。
请尝试在您的中添加以下块之一app.yaml
file
用于自动缩放
automatic_scaling:
min_num_instances: 1
max_num_instances: 2
用于手动缩放
manual_scaling:
instances: 2
为了避免耗尽这些配额,请删除/停止您不需要的 App Engine 服务版本。
有关扩展策略的更多信息,请检查此参考指南 https://cloud.google.com/appengine/docs/flexible/python/reference/app-yaml#services
例如:
每个虚拟机占用 1 个 IP,您的项目的配额为 4。
如果您的应用程序引擎服务有 3 个虚拟机正在运行(使用了 3 个 IP),则在下一次部署中,您只有 1 个可用 IP,如果您的min_instances
or instances
在你的app.yaml
文件大于 1,部署将失败。
这是因为不可能在您的项目上分配超过4个IP,并且App引擎首先打开新实例,然后关闭旧实例,这是为了避免服务中断
如果您需要增加此资源配额,则有必要联系 GCP 销售代表 https://cloud.google.com/contact.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)