<p>My Master node ip address is 192.168.56.101. there is no node connected to master yet.</p>

<pre><code>master@kmaster:~$ kubectl get nodes
NAME      STATUS   ROLES    AGE    VERSION
kmaster   Ready    master   125m   v1.15.1
master@kmaster:~$
</code></pre>

<p>When i deployed my kubernetes-dashborad using below command, why running IP Address of kubernetes-dashboard-5c8f9556c4-f2jpz is 192.168.189.6
Similarly the other pods has also different IP address.</p>

<pre><code>kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.0.0-beta1/aio/deploy/recommended.yaml
</code></pre>

<pre><code>master@kmaster:~$ kubectl get pods -o wide --all-namespaces
NAMESPACE              NAME                                          READY   STATUS    RESTARTS   AGE    IP               NODE      NOMINATED NODE   READINESS GATES
kube-system            calico-kube-controllers-7bd78b474d-r2bwg      1/1     Running   0          113m   192.168.189.2    kmaster   &lt;none&gt;           &lt;none&gt;
kube-system            calico-node-dsgqt                             1/1     Running   0          113m   192.168.56.101   kmaster   &lt;none&gt;           &lt;none&gt;
kube-system            coredns-5c98db65d4-n2wml                      1/1     Running   0          114m   192.168.189.3    kmaster   &lt;none&gt;           &lt;none&gt;
kube-system            coredns-5c98db65d4-v5qc8                      1/1     Running   0          114m   192.168.189.1    kmaster   &lt;none&gt;           &lt;none&gt;
kube-system            etcd-kmaster                                  1/1     Running   0          114m   192.168.56.101   kmaster   &lt;none&gt;           &lt;none&gt;
kube-system            kube-apiserver-kmaster                        1/1     Running   0          114m   192.168.56.101   kmaster   &lt;none&gt;           &lt;none&gt;
kube-system            kube-controller-manager-kmaster               1/1     Running   0          114m   192.168.56.101   kmaster   &lt;none&gt;           &lt;none&gt;
kube-system            kube-proxy-bgtmr                              1/1     Running   0          114m   192.168.56.101   kmaster   &lt;none&gt;           &lt;none&gt;
kube-system            kube-scheduler-kmaster                        1/1     Running   0          114m   192.168.56.101   kmaster   &lt;none&gt;           &lt;none&gt;
kubernetes-dashboard   kubernetes-dashboard-5c8f9556c4-f2jpz         1/1     Running   0          107m   192.168.189.6    kmaster   &lt;none&gt;           &lt;none&gt;
kubernetes-dashboard   kubernetes-metrics-scraper-86456cdd8f-w45w2   1/1     Running   0          107m   192.168.189.4    kmaster   &lt;none&gt;           &lt;none&gt;
master@kmaster:~$
</code></pre>

<p>And also not able to access the kubernetes-dashboard UI. i am using the link
<a href="http://localhost:8001/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy/" rel="nofollow noreferrer">http://localhost:8001/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy/</a>.</p>

<p>and the link KubeDNS <a href="https://192.168.56.101:6443/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy" rel="nofollow noreferrer">https://192.168.56.101:6443/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy</a> is also not working.</p>

<p>but when trying to access Kubernetes master at <a href="https://192.168.56.101:6443" rel="nofollow noreferrer">https://192.168.56.101:6443</a> is working.</p>

<pre><code>master@kmaster:~$ kubectl cluster-info
Kubernetes master is running at https://192.168.56.101:6443
KubeDNS is running at https://192.168.56.101:6443/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy
</code></pre>

<p>Any suggestions.</p>

<p>If you try to access the dashboard with localhost:8081, you have to run kubectl proxy --port 8081 from your console to setup the proxy between you localhost to the k8s apiserver.</p>

<p>If you want to access dashboard from apiserver directly without the local proxy, try the following url <a href="https://192.168.56.101:6443/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy" rel="nofollow noreferrer">https://192.168.56.101:6443/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy</a> (assuming your service name is kubernetes-dashboard)</p>

<p>You can also run kubectl port-forward svc/kubernetes-dashboard -n kubernetes-dashboard 443, then access the dashboard with <a href="https://localhost:443" rel="nofollow noreferrer">https://localhost:443</a></p>
