Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Connection error between subnets in distinct regions with vpc connected by peer

I have one VPC that have global dynamic enrouting with two subnets, one in europe-west1 and other in us-central1. This VPC are connected by peering with other VPC with one subnet in europe-west1 (the VPC are global too). In each subnet are one GKE cluster. My issue is about connection to kubernetes services from GKE cluster 3. I can access from GKE cluster 3 to GKE cluster 1 but not to GKE cluster 2, I think is for regions or something like this. I attach a picture.

 

Diagrama en blanco (2).jpeg

 

 

 

 

 

 

 

 

 

Where is my error?

Thanks

 

 

 

1 3 219
3 REPLIES 3

Hi @Enol ,

Can you share the service so I can check the load balancer configured in these clusters?

Also, can the cluster 1 connect to cluster 2? Then cluster 2 to 3?

Hello, 

 

Yesterday I found the solution, the load balancer was not global. Now it works

 

Thanks

This saved my bacon. If you're using the `ingress-nginx` helm chart with Terraform, you can set the necessary annotation with:

 

  set {
    name  = "controller.service.annotations.networking\\.gke\\.io/internal-load-balancer-allow-global-access"
    value = "true"
  }