Migration of GKE from Default to Shared VPC and Public to Private GKE CLuster

走远了吗. 提交于 2021-02-11 14:31:27

问题


Few queries on GKE

  • We have few GKE CLusters running on Default VPC. Can we migrate these clusters to use SharedVPC or atleast Custom VPC? It seems existing clusters with default VPC mode cannot be changed to SharedVPC model as per GCP documentation but can we convert to Custom VPC from default VPC
  • How to migrate from Custom VPC to Shared VPC? Is it creating a new Cluster from existing Cluster and select SharedVPC in networking section for new cluster and then copy the Kubernetes resources to new Cluster?
  • Also looks like we cannot convert public GKE Cluster to private mode. Does this too requires creation of new Cluster to migrate from Public to Private GKE Cluster?

回答1:


Unfortunatelly you cannot change any of those settings on the existing GKE cluster. You can clone the existing one by using DUPLICATE tab in cluster details:

During new cluster creation you can change it from Public to Private in Cluster -> Networking section:

After choosing it you'll need to correct fields that are marked in red:

You can also choose different VPC network.

When it comes to migrating a workload this is separate story. You can choose the approach which is most suitable for you, ranging from manually exporting all your yaml manifests (pretty tedious and not very convenient process I would say) to using dedicated tools like velero.



来源:https://stackoverflow.com/questions/64277797/migration-of-gke-from-default-to-shared-vpc-and-public-to-private-gke-cluster

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!