<p>We have a Google Cloud project with several VM instances and also Kubernetes cluster.</p>

<p>I am able to easily access Kubernetes services with <code>kubefwd</code> and I can <code>ping</code> them and also <code>curl</code> them. The problem is that <code>kubefwd</code> works only for Kubernetes, but not for other VM instances. </p>

<p>Is there a way to mount the network locally, so I could <code>ping</code> and <code>curl</code> any instance without it having public IP and with DNS the same as inside the cluster?</p>

Vojtěch
<p>I would highly recommend rolling a vpn server like openvpn. You can also run this inside of the Kubernetes Cluster.</p>

<p>I have a <code>make install</code> ready repo for ya to check out at <a href="https://github.com/mateothegreat/k8-byexamples-openvpn" rel="nofollow noreferrer">https://github.com/mateothegreat/k8-byexamples-openvpn</a>.</p>

<p>Basically openvpn is running inside of a container (inside of a pod) and you can set the routes that you want the client(s) to be able to see.</p>

<p>I would not rely on <code>kubefwd</code> as it isn't production grade and will give you issues with persistent connections.</p>

<p>Hope this help ya out.. if you still have questions/concerns please reach out.</p>
