Google app engine 在灵活环境中部署我的应用程序时,获取错误beta设置计算机\u无法在应用程序引擎灵活环境中设置类型

Google app engine 在灵活环境中部署我的应用程序时,获取错误beta设置计算机\u无法在应用程序引擎灵活环境中设置类型,google-app-engine,google-cloud-platform,google-compute-engine,Google App Engine,Google Cloud Platform,Google Compute Engine,当尝试使用灵活的环境部署我的应用程序引擎时,我遇到了一个错误 ERROR: (gcloud.preview.app.deploy) INVALID_ARGUMENT: The beta setting machine_type cannot be set in an App Engine Flexible Environment deployment. 下面给出了我的app.yaml runtime: nodejs #vm: true env: flex # [END runtime]

当尝试使用灵活的环境部署我的应用程序引擎时,我遇到了一个错误

ERROR: (gcloud.preview.app.deploy) INVALID_ARGUMENT: 
The beta setting machine_type cannot be set in an App Engine Flexible Environment deployment.
下面给出了我的app.yaml

runtime: nodejs
#vm: true
env: flex

# [END runtime]

network:
  instance_tag: app-tag
  name: network-tag

instance_class: F1
automatic_scaling:
  min_num_instances: 1
  max_num_instances: 2
  cool_down_period_sec: 60

beta_settings:
  machine_type: f1-micro

handlers:
- url: /.*
  script: IGNORED
  secure: always

# Temporary setting to keep gcloud from uploading node_modules
skip_files:
- ^node_modules$

还有谁能告诉我
vm:true
env:flex
之间的区别是什么,因为两者都将appengine环境设置为flexible???

当从
vm:true
更改为
env:flex
时,您实际上正在切换到最新的infra版本,请参阅

机器类型不再以这种方式配置。相反,您可以通过以下方式配置:

资源设置

这些设置控制计算资源。应用程序引擎分配一个 基于您所拥有的CPU和内存量 明确规定。机器保证至少具有 您指定的资源,它可能有更多

在资源设置中,最多可以指定八个tmpfs卷。 然后,您可以通过tmpfs和启用需要共享内存的工作负载 可以改进文件系统I/O

例如:

resources:
  cpu: 2
  memory_gb: 1.3
  disk_size_gb: 10
  volumes:
  - name: ramdisk1
    volume_type: tmpfs
    size_gb: 0.5

vm:true
是否表示标准环境??我想不是