Google Cloud:如何将kubernetes集群移动到不同的区域?

Google Cloud: How to move kubernetes cluster to different region?

我有一个 kubernetes 集群,目前 运行 在区域 europe-north1 和区域 europe-north1-a 中。 我想将此集群移动到新区域 europe-west3 和区域 europe-west3-b 以访问 nvidia-tesla-t4 加速器。

gcloud compute accelerator-types list
NAME                   ZONE                       DESCRIPTION
nvidia-tesla-t4        europe-west3-b             NVIDIA Tesla T4

我尝试通过 gcloud CLI 更新集群,但标准更新命令似乎不支持这种操作。

错误:"Specified location "europe-west3-b" 不是群集区域 "europe-north1" 中的有效区域。"

gcloud container clusters update cluster-1 \
      --region europe-north1 \
      --node-locations europe-west3-b
Updating cluster-1...
30 .........................done.
31 ERROR: (gcloud.container.clusters.update) Operation [<Operation
32  clusterConditions: [<StatusCondition
33  message: u'Specified location "europe-west3-b" is not a valid zone in the cluster\'s region "europe-north1".'>]

有什么有效的方法可以在区域之间移动集群吗?

不,你根本不能在区域之间移动东西,至少不能移动整个 运行 集群。您需要备份数据并将其恢复到新区域的新集群上。