EMG
EMG

Reputation: 71

Change the CIDR subnet of GKE cluster

I have two GKE clusters with the same CIDR subnet addresses (the clusters are in different gcloud project). I need to connect the VPC with VPC peering but I get an error because the CIDR subnet and I need to change one. I have a lot of pods, secrets, deployemts...etc. Are any way to change the subnet without creating a new cluster and migrating the pods?

Thanks!

Upvotes: 0

Views: 1404

Answers (1)

hars34
hars34

Reputation: 87

I am afraid you cannot, A subnet CIDR range in one peered VPC network cannot overlap with a static route in another peered network. This rule covers both subnet routes and static routes.

Upvotes: 1

Related Questions