<p>I'm working for access and monitor my Kubernetes Cluster . So I started the kubernetes proxy for access the external browsers or etc. </p>

<p>This is command I've runned for find the APISERVER's </p>

<pre><code>APISERVER=$(kubectl config view | grep server | cut -f 2- -d ":" | tr -d " ")
</code></pre>

<p>That is the results shown as below . </p>

<pre><code>server: https://&lt;external_ip_0&gt;
server: https://&lt;external_ip_1&gt;
server: https://&lt;external_ip_2&gt;
server: https://&lt;external_ip_3&gt;
</code></pre>

<p>when I want to access the my proxy any ip at above. I got timeout and any response from anywhere .How I can handle this problem ? </p>

<p>Which one is the TRUE APISERVER ip ? </p>

<p>Notice : That is the my command for run the kubernetes proxy . I want to access apiserver via kubectl proxy. </p>

<pre><code>kubectl proxy --address 0.0.0.0 --accept-hosts '.*' --port=8080  &amp;
</code></pre>

ColossusMark1
<p>command <code>kubectl config view</code> shows your kubectl config where you can have multiple clusters configured so that's why you are receiving multiple "server" when greping - those are some Kubernetes clusters which you used in past. See <a href="https://kubernetes.io/docs/tasks/access-application-cluster/configure-access-multiple-clusters/" rel="nofollow noreferrer">https://kubernetes.io/docs/tasks/access-application-cluster/configure-access-multiple-clusters/</a> </p>

<p>If you want to access Kubernetes API exposed by proxy you can issue proxy command which you provided and go under <a href="http://localhost:8080/api/" rel="nofollow noreferrer">http://localhost:8080/api/</a> in your web browser to see Kubernetes API - more information there: <a href="https://kubernetes.io/docs/tasks/access-kubernetes-api/http-proxy-access-api/" rel="nofollow noreferrer">https://kubernetes.io/docs/tasks/access-kubernetes-api/http-proxy-access-api/</a> </p>
