<p>So the idea is Kubernetes dashboard accesses Kubernetes API to give us beautiful visualizations of different 'kinds' running in the Kubernetes cluster and the method by which we access the Kubernetes dashboard is by the proxy mechanism of the Kubernetes API which can then be exposed to a public host for public access.</p>

<p>My question would be is there any possibility that we can access Kubernetes API proxy mechanism for some other service inside a Kubernetes cluster via that publically exposed address of Kubernetes Dashboard?</p>

Arpit Goyal
<p>Sure you can.  So after you set up your proxy with <code>kubectl proxy</code>, you can access the services with this format:</p>

<pre><code>http://localhost:8001/api/v1/namespaces/kube-system/services/&lt;service-name&gt;:&lt;port-name&gt;/proxy/
</code></pre>

<p>For example for <code>http-svc</code> and port name <code>http</code>:</p>

<pre><code>http://localhost:8001/api/v1/namespaces/default/services/http-svc:http/proxy/
</code></pre>

<p>Note: it's not necessarily for public access, but rather a proxy for you to connect from your public machine (say your laptop) to a private Kubernetes cluster.</p>
