无法在GCP中部署自定义运行时AppEngine。

huangapple go评论114阅读模式
英文:

Unable to deploy Custom Runtime AppEngine in GCP

问题

I tried to deploy a Custom Runtime Application in GCP, but it failed during the deployment with the following error message.

ERROR: (gcloud.app.deploy) Error Response: [13] Flex operation projects/custom-runtime-app/regions/asia-south1/operations/5f33c87e-b5fc-4896-ad3a-745f014b2d19 error [INTERNAL]: An internal error occurred while processing task /app-engine-flex/insert_flex_deployment/flex_create_resources>2023-08-10T08:04:17.559Z1108.pt.1: Deployment Manager operation custom-runtime-app/operation-1691654658441-6028d0affbfd9-b08c5121-7ca0a212 errors: [code: "RESOURCE_ERROR"
location: "/deployments/aef-default-20230810t133154/resources/aef-default-20230810t133154"
message: "{\"ResourceType\":\"compute.beta.regionAutoscaler\",\"ResourceErrorCode\":\"INTERNAL_ERROR\",\"ResourceErrorMessage\":\"INTERNAL_ERROR\"}"
]

Can someone explain, what do I miss?

my app.yaml is

runtime : custom
env : flex

my Dockerfile is

FROM python
WORKDIR ./
ADD ./main.py ./
CMD [ "python","./main.py" ]
英文:

I tried to deploy a Custom Runtime Application in GCP, but it failed during the deployment with the following error message.

ERROR: (gcloud.app.deploy) Error Response: [13] Flex operation projects/custom-runtime-app/regions/asia-south1/operations/5f33c87e-b5fc-4896-ad3a-745f014b2d19 error [INTERNAL]: An internal error occurred while processing task /app-engine-flex/insert_flex_deployment/flex_create_resources>2023-08-10T08:04:17.559Z1108.pt.1: Deployment Manager operation custom-runtime-app/operation-1691654658441-6028d0affbfd9-b08c5121-7ca0a212 errors: [code: "RESOURCE_ERROR"
location: "/deployments/aef-default-20230810t133154/resources/aef-default-20230810t133154"
message: "{\"ResourceType\":\"compute.beta.regionAutoscaler\",\"ResourceErrorCode\":\"INTERNAL_ERROR\",\"ResourceErrorMessage\":\"INTERNAL_ERROR\"}"
]

Can someone explain, what do I miss?

my app.yaml is

runtime : custom
env : flex

my Dockerfile is

FROM python
WORKDIR ./
ADD ./main.py ./
CMD [ "python","./main.py" ]

答案1

得分: 1

为部署自定义运行时应用程序,您可以通过在您的 app.yaml 文件中的 automatic_scaling 部分指定实例数量来配置自动扩展。

您的 app.yaml 文件应该类似于:

使用自动扩展

runtime: custom
env: flex
automatic_scaling:
  min_num_instances: 1
  max_num_instances: 2
英文:

To deploy a custom runtime application, you can configure automatic scaling by specifying the number of instances in automatic_scaling section to your app.yaml

Your app.yaml file would something similar to:

Using automatic scaling

runtime : custom
env : flex
automatic_scaling:
  min_num_instances: 1
  max_num_instances: 2

huangapple
  • 本文由 发表于 2023年8月10日 16:14:58
  • 转载请务必保留本文链接:https://go.coder-hub.com/76873821.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定