繁体   English   中英

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

[英]Google Cloud: How to move kubernetes cluster to different region?

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

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

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

错误:“指定的位置“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".'>]

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

不,您根本无法在区域之间移动事物,尤其是整个正在运行的集群。 您需要备份数据并将其恢复到新区域的新集群上。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM