<p>I am looking to access a Postgres service outside of GKE, but on a compute engine VM in the same zone using the VMs internal IP.</p>

<p>So far I've managed to access it via the external IP from inside the pod, but I'm looking to access it without leaving google infrastructure.</p>

<p>I have done some testing and I can SSH into the kubernetes VM and connect to the other VM using the internal IP, but when I attempt to do this from the pod running on the VM it cannot connect. I even tried using the compute engine internal DNS name with the same result, success from the VM but unable to connect from the pod.</p>

<p>I am sure this isn't the first time this problem has come up but I cannot find out a way to communicate from the kubernetes pod to a compute engine instance in the same zone.</p>

Ryan McCue
<p>It turns out with the compute engine VM I did not have the kubernetes <strong>pod address range</strong> whitelisted for port 5432. I simply added that to the network configuration for the VM and it started working...</p>
