GCP 作曲家创建失败,请求错误

GCP composer creation failed with bad request

正在尝试使用 gcloud CLI 创建 GCP composer 环境实例

gcloud composer environments create "jakub" \
>     --project "projectX" \
>     --location "us-central1" \
>     --zone "us-central1-a" \
>     --disk-size 50GB \
>     --node-count 3 \
>     --image-version composer-1.7.1-airflow-1.10.2 \
>     --machine-type n1-standard-2 \
>     --python-version 3 \
>     --labels env="test"

一小时后出现错误:

f7b3f4-6b95-4fb0-85e3-f39a2b11cec9] failed: Http error status code: 400
Http error message: BAD REQUEST
Additional errors:
    {"ResourceType":"appengine.v1.version","ResourceErrorCode":"400","ResourceErrorMessage":{"code":400,"message":"Legacy health checks are no longer supported for the App Engine Flexible environment. Please remove the 'health_check' section from your app.yaml and configure updated health checks. For instructions on migrating to split health checks see https://cloud.google.com/appengine/docs/flexible/java/migrating-to-split-health-checks","status":"INVALID_ARGUMENT","details":[],"statusMessage":"Bad Request","requestPath":"https://appengine.googleapis.com/v1/apps/vd41e6cad4ccb2a7b-tp/services/default/versions","httpMethod":"POST"}}

基于https://cloud.google.com/sdk/gcloud/reference/composer/environments/create

这是因为您正在尝试使用旧的图像版本。根据 Supported Cloud Composer versions.

使用更新的受支持版本重试 Composer 环境创建