Google Cloud 管理区域和位置
使用 GKE on AWS 创建的集群位于 AWS 区域。创建集群时,您可以为集群指定 AWS 区域以及管理该集群的 Google Cloud 区域。
每个 Google Cloud 区域都可以管理附近的一组特定 AWS 区域中的集群。例如,位于俄勒冈州的 Google Cloud 区域 us-west1 管理两个 AWS 区域中的集群:位于北加利福尼亚州的 us-west-1、位于俄勒冈州的 us-west-2。从附近的 Google Cloud 区域管理集群可提高可用性,并缩短集群管理操作的延迟时间。
GKE on AWS 将集群的 Google Cloud 区域添加到集群的资源名称中。例如,在区域 us-west1 的项目 my-project 中创建一个名为 my-cluster 的集群,其资源名称为 projects/my-project/locations/us-west1/awsClusters/my-cluster。相比之下,AWS 区域是集群资源的一部分。您可以在 API 调用的 aws_region 字段中指定它。
数据存放区域
为了管理您的集群,GKE Multi-Cloud API 必须将集群的状态信息存储在您在创建集群时指定的 Google Cloud 区域中。此数据不包含特定于工作负载的数据(存储在集群区域中),但包含 AWS 资源 ID 和公钥基础架构 (PKI) 数据等信息。
如果您的应用需要将其数据存储在特定地理区域中,请在创建集群时指定符合您要求的 AWS 区域及其关联的Google Cloud 管理区域。
Google Cloud 区域和附近的 AWS 区域
下表列出了 GKE on AWS 当前支持的 Google Cloud 区域及其可以管理的附近区域。| Google Cloud 区域 | AWS 区域 |
|---|---|
asia-east2 |
ap-east-1 |
asia-northeast2 |
ap-northeast-1ap-northeast-2ap-northeast-3 |
asia-south1 |
ap-south-1 |
asia-southeast1 |
ap-east-1ap-northeast-1ap-southeast-1 |
asia-southeast2 |
ap-southeast-3 |
australia-southeast1 |
ap-southeast-2 |
europe-north1 |
eu-north-1 |
europe-west1 |
eu-central-1eu-north-1eu-south-1eu-west-1eu-west-2eu-west-3 |
europe-west2 |
eu-west-2 |
europe-west3 |
eu-central-1 |
europe-west9 |
eu-west-3 |
northamerica-northeast1 |
ca-central-1 |
southamerica-east1 |
sa-east-1 |
us-east4 |
ca-central-1us-east-1us-east-2 |
us-west1 |
us-west-1us-west-2 |
您可以通过运行以下 gcloud 命令来获取 Google Cloud 区域支持的当前 AWS 区域的最新列表:
gcloud container aws get-server-config --location GOOGLE_CLOUD_REGION
将 GOOGLE_CLOUD_REGION 替换为您要查询的 Google Cloud 区域的名称。