<p>How can I connect to VM's running in GCP compute engine from Kubernetes pod? I have setup a proxy server in Compute Engine and I need to use that from within pods.</p>
<p>This communication needs to be using internal IP. I have allowed firewall rules to allow all internal IP.</p>
<p>Any suggestions on how to connect from pods to gcp vm's?</p>

<p>You can create an internal load balancer in GCP and connect VM <strong>or</strong> you can use the VPC peering if in a different network.</p>
<ul>
<li>If your GKE and VM are in the same network you can use the internal IP of your VM to connect with.</li>
</ul>
<p>From inside of POD you can send <strong>curl</strong> requests to the VM over internal IP.</p>
<p><strong>OR</strong></p>
<ul>
<li>If your GKE and GCP VM both are in the different networks you can use the VPC peering to connect both networks and use the internal IP of VM from POD.</li>
</ul>
