英文:
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
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论