尝试使用 gcloud CLI 创建 GCP 编辑器环境实例
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
这是因为您尝试使用旧映像版本。根据支持的云编辑器版本,使用较新的受支持版本重试创建编辑器环境。