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

GKE pod unable to connect to mongodb which is connected via the VPN tunnel (from Azure)

Hi. 

we have Autopilot GKE cluster and the pods unable to connect to mongodb which is connected via the VPN tunnel (from Azure). 

Same mongo DB is able to connect from CloudRun containers. 

Please asssit 

Thanks

0 1 193
1 REPLY 1

There could be lot of reasons for connectivity issue based how you are testing and how the network is setup. However first few things to look into is

1. Is cloudrun you tested in same VPC?

2. Is GKE and Cloud run used same subnets or different subnets in the same VPC or different VPCs?

3. If its different subnet in same VPC do you have correct routing setup at VPN tunneling? 

4. From gke pod, if you run traceroute upto where you can reach and where it times out will give you better idea where there might be an issue related to connectivity. 

Hope this helps finding out where the issue lies related to timeout in your case

Top Labels in this Space
Top Solution Authors