簡體   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