<p>I have a K8s cluster (1 master, 2 workers) running on 3 vagrant VMs on my computer.</p>

<p>I've installed kubernetes dashboard, like explained <a href="https://github.com/kubernetes/dashboard#getting-started" rel="nofollow noreferrer">here</a>. </p>

<p>All my pods are running correctly:</p>

<pre><code>kubectl get pods -o wide --namespace=kube-system
NAME                                          READY   STATUS    RESTARTS   AGE   IP              NODE                   NOMINATED NODE   READINESS GATES
coredns-fb8b8dccf-n5cpm                       1/1     Running   1          61m   10.244.0.4      kmaster.example.com    &lt;none&gt;           &lt;none&gt;
coredns-fb8b8dccf-qwcr4                       1/1     Running   1          61m   10.244.0.5      kmaster.example.com    &lt;none&gt;           &lt;none&gt;
etcd-kmaster.example.com                      1/1     Running   1          60m   172.42.42.100   kmaster.example.com    &lt;none&gt;           &lt;none&gt;
kube-apiserver-kmaster.example.com            1/1     Running   1          60m   172.42.42.100   kmaster.example.com    &lt;none&gt;           &lt;none&gt;
kube-controller-manager-kmaster.example.com   1/1     Running   1          60m   172.42.42.100   kmaster.example.com    &lt;none&gt;           &lt;none&gt;
kube-flannel-ds-amd64-hcjsm                   1/1     Running   1          61m   172.42.42.100   kmaster.example.com    &lt;none&gt;           &lt;none&gt;
kube-flannel-ds-amd64-klv4f                   1/1     Running   3          56m   172.42.42.102   kworker2.example.com   &lt;none&gt;           &lt;none&gt;
kube-flannel-ds-amd64-lmpnd                   1/1     Running   2          59m   172.42.42.101   kworker1.example.com   &lt;none&gt;           &lt;none&gt;
kube-proxy-86qsw                              1/1     Running   1          59m   10.0.2.15       kworker1.example.com   &lt;none&gt;           &lt;none&gt;
kube-proxy-dp29s                              1/1     Running   1          61m   172.42.42.100   kmaster.example.com    &lt;none&gt;           &lt;none&gt;
kube-proxy-gqqq9                              1/1     Running   1          56m   10.0.2.15       kworker2.example.com   &lt;none&gt;           &lt;none&gt;
kube-scheduler-kmaster.example.com            1/1     Running   1          60m   172.42.42.100   kmaster.example.com    &lt;none&gt;           &lt;none&gt;
kubernetes-dashboard-5f7b999d65-zqbbz         1/1     Running   1          28m   10.244.1.3      kworker1.example.com   &lt;none&gt;           &lt;none&gt;
</code></pre>

<p>As you can see the dashboard is in "Running" status.</p>

<p>I also ran <code>kubectl proxy</code> and it's serving on <code>127.0.0.1:8001</code>.</p>

<p>But when I try to open  <a href="http://127.0.0.1:8001/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/" rel="nofollow noreferrer">http://127.0.0.1:8001/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/</a> I have the error:</p>

<pre><code>This site can’t be reached
127.0.0.1 refused to connect.
ERR_CONNECTION_REFUSED
</code></pre>

<p>I'm trying to open the dashboard directly on my computer, not inside the vagram VM. Could that be the problem? If yes, how to solve it ? I'm able to ping my VM from my computer without any issue.</p>

<p>Thanks for helping me.</p>

<p><strong>EDIT</strong></p>

<p>Here is the ouput of <code>kubectl get svc -n kube-system</code></p>

<pre><code>NAME                   TYPE        CLUSTER-IP      EXTERNAL-IP   PORT(S)                  AGE
kube-dns               ClusterIP   10.96.0.10      &lt;none&gt;        53/UDP,53/TCP,9153/TCP   96m
kubernetes-dashboard   NodePort    10.109.230.83   &lt;none&gt;        443:30089/TCP            63m
</code></pre>

iAmoric
<p>Kubernetes dashboard runs only in the cluster as default. You can control it with get svc command:</p>

<pre><code>kubectl get svc -n kube-system
</code></pre>

<p>Default type of that service is ClusterIp, to reach from outside of the cluster yo have to change it to NodePort.
To change it follow <a href="https://github.com/kubernetes/dashboard/wiki/Accessing-Dashboard---1.7.X-and-above#nodeport" rel="nofollow noreferrer">this doc</a>.</p>
