mvhoma
mvhoma

Reputation: 41

Restoring VPC peering for private GKE cluster

Private GKE clusters reuse VPC peering connection from worker nodes to master nodes in Google-managed VPC project/network.

Accidentally this VPC peering was removed and worker nodes lost connection to master API.

Is there a way to restore that VPC peering? I could see removal action log at Cloud Activity page, but it doesn't look too helpful as it doesn't contain before/after state, so it's not evident which project/network should be set to restore peering. Thanks!

Upvotes: 1

Views: 858

Answers (1)

mvhoma
mvhoma

Reputation: 41

I've managed to get it working by creating a brand new private GKE cluster in the same vpc. Google has created vpc peering with a master subnet of a new cluster together with recently removed master subnet. Hopefully, it looks like they use the same vpc/network for a peering to a specific customer vpc. Then removed temporary created cluster.

P.S. Thanks Leo and Hector Martinez Rodriguez for pointing to the best practice.

Upvotes: 2

Related Questions