Infrastructure Manager 可以将 Google Cloud 资源部署到这些资源可用的任何区域或可用区。例如,如需查看 Cloud Run 可在哪些位置使用,请参阅 Cloud Run 位置。
您可以在使用 Google Cloud 控制台创建部署时、直接在 Terraform 配置中或作为可设置为 gcloud CLI 创建部署命令一部分的变量来指定资源的部署位置。
如果您使用存储桶来存储 Terraform 配置,则此存储桶可以位于任何存储桶位置。如需了解详情,请参阅存储桶位置。
Infra Manager 服务可在以下区域和多区域中使用。在这些位置,Infra Manager 会运行 Cloud Build 作业,并创建存储桶来存储生成的制品和日志。
如需详细了解地区和区域,请参阅地理位置和地区。
Infra Manager 的位置类型
您可以根据可用性和延迟时间要求,在不同类型的位置创建 Infra Manager 资源:
- 区域位置:区域位置由特定地理位置(例如
us-central1)中的数据中心组成。在单个区域中创建的部署会在该区域中运行 Cloud Build 作业,并仅在该区域中存储状态文件和制品。区域部署通常速度更快,费用更低,因为不需要跨区域复制数据。 - 多区域位置:多区域位置是包含多个离散区域的大型地理区域(例如
us)。在多区域中创建的部署会在多个数据中心复制部署元数据和 Terraform 状态文件,以提高可用性和冗余度。传入请求会在多区域内的健康实例之间进行主动负载均衡。
在多区域位置创建的部署在逻辑上与在各个区域创建的部署不同。
多区域
以下多区域提供了 Infra Manager:
| 多区域名称 | 说明 | 覆盖区域 |
|---|---|---|
us |
美国的数据中心 | us-central1,us-east4 |
在多个区域中使用 Cloud Build 工作器池
由于 Cloud Build 专用工作器池是严格的单区域资源,因此将专用工作器池与多区域部署(例如 us)搭配使用需要进行以下设置:
- 在多区域的所有成员区域中创建相同的区域级工作器池。对于
us多区域,请在us-central1和us-east4中创建具有完全相同 ID 和配置的私有工作器池:projects/PROJECT_ID/locations/us-central1/workerPools/WORKER_POOL_IDprojects/PROJECT_ID/locations/us-east4/workerPools/WORKER_POOL_ID
- 通过引用
locations/us,在 Infra Manager 请求中指定多区域位置:text projects/PROJECT_ID/locations/us/workerPools/WORKER_POOL_ID当部署执行时,Infra Manager 会自动将 build 作业定向到处理请求的区域中匹配的区域工作器池。
区域
Infra Manager 可在以下区域使用。如需详细了解地区和区域,请参阅地理位置和地区。
Asia Pacific
The following table lists the available regions in Asia Pacific.
| Region description | Region name |
|---|---|
| Tokyo, Japan | asia-northeast1 |
| Osaka, Japan | asia-northeast2 |
| Seoul, South Korea | asia-northeast3 |
| Taiwan | asia-east1 |
| Hong Kong | asia-east2 |
| Mumbai, India | asia-south1 |
| Delhi, India | asia-south2 |
| Singapore | asia-southeast1 |
| Jakarta, Indonesia | asia-southeast2 |
| Bangkok, Thailand | asia-southeast3 |
| Sydney, Australia | australia-southeast1 |
| Melbourne, Australia | australia-southeast2 |
Europe
The following table lists the available regions in Europe.
| Region description | Region name |
|---|---|
| Hamina, Finland | europe-north1 |
| Stockholm, Sweden | europe-north2 |
| Warsaw, Poland | europe-central2 |
| St. Ghislain, Belgium | europe-west1 |
| London, England | europe-west2 |
| Frankfurt, Germany | europe-west3 |
| Milan, Italy | europe-west8 |
| Paris, France | europe-west9 |
| Berlin, Germany | europe-west10 |
| Turin, Italy | europe-west12 |
| Eemshaven, Netherlands | europe-west4 |
| Zurich, Switzerland | europe-west6 |
| Madrid, Spain | europe-southwest1 |
Americas
The following table lists the available regions in the Americas.
| Region description | Region name |
|---|---|
| Moncks Corner, South Carolina | us-east1 |
| Columbus, Ohio | us-east5 |
| Ashburn, Virginia | us-east4 |
| The Dalles, Oregon | us-west1 |
| Los Angeles, California | us-west2 |
| Salt Lake City, Utah | us-west3 |
| Las Vegas, Nevada | us-west4 |
| Council Bluffs, Iowa | us-central1 |
| Dallas, Texas | us-south1 |
| Montréal, Canada | northamerica-northeast1 |
| Toronto, Canada | northamerica-northeast2 |
| Queretaro, Mexico | northamerica-south1 |
| São Paulo, Brazil | southamerica-east1 |
| Santiago, Chile | southamerica-west1 |
Middle-East and Africa
The following table lists the available regions in the Middle-East and Africa.
| Region description | Region name |
|---|---|
| Johannesburg, South Africa | africa-south1 |
| Doha, Qatar | me-central1 |
| Dammam, Saudi Arabia | me-central2 |
| Tel Aviv, Israel | me-west1 |