I've two projects on Google Cloud, which are connected with VPN Tunnels.


So every VM can access the other VMs from the other network. So can access and vice versa

I created a Kubernetes cluster in The cluster has the subnetwork. I created a firewall rule, that the pods can access the network, but it doesn't work with the network. Any idea? Can I route the traffic via the VPN tunnel?


Kubernetes on GCP uses advanced routing for internal traffic. The rule in use assigns the entire subnet as being part of the GKE cluster. To route traffic to one of your other subnets within this range, you will have to add another forwarding rule.

You can deploy a daemonSet to ensure each node includes the new routes to ensure the GKE cluster can reach both of your other subnets. This GitHub post addresses a similar issue with the same fix.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.