<p>I have installed and configured Kubernetes on my ubuntu machine, followed this <a href="https://www.edureka.co/blog/install-kubernetes-on-ubuntu" rel="nofollow noreferrer">Document</a></p>

<p>After deploying the Kubernetes-dashboard, container keep crashing</p>

<pre><code>kubectl create -f https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml
</code></pre>

<p><strong>Started the Proxy using:</strong></p>

<pre><code>kubectl proxy --address='0.0.0.0' --accept-hosts='.*' --port=8001
</code></pre>

<p><strong>Pod status:</strong></p>

<pre><code>kubectl get pods -o wide --all-namespaces
....
....
kube-system   kubernetes-dashboard-64576d84bd-z6pff     0/1       CrashLoopBackOff   26         2h        192.168.162.87   kb-node     &lt;none&gt;
</code></pre>

<p><strong>Kubernetes system log:</strong></p>

<pre><code>root@KB-master:~# kubectl -n kube-system logs kubernetes-dashboard-64576d84bd-z6pff --follow
2018/09/11 09:27:03 Starting overwatch
2018/09/11 09:27:03 Using apiserver-host location: http://192.168.33.30:8001
2018/09/11 09:27:03 Skipping in-cluster config
2018/09/11 09:27:03 Using random key for csrf signing
2018/09/11 09:27:03 No request provided. Skipping authorization
2018/09/11 09:27:33 Error while initializing connection to Kubernetes apiserver. This most likely means that the cluster is misconfigured (e.g., it has invalid apiserver certificates or service account's configuration) or the --apiserver-host param points to a server that does not exist. Reason: Get http://192.168.33.30:8001/version: dial tcp 192.168.33.30:8001: i/o timeout
Refer to our FAQ and wiki pages for more information: https://github.com/kubernetes/dashboard/wiki/FAQ
</code></pre>

<p>Getting the msg when I'm trying to hit below link on the browser</p>

<pre><code>URL:http://192.168.33.30:8001/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/#!/login

Error: 'dial tcp 192.168.162.87:8443: connect: connection refused'
Trying to reach: 'https://192.168.162.87:8443/'
</code></pre>

<p>Anyone can help me with this.</p>

Ashwani
<p><code>http://192.168.33.30:8001</code> is not a legitimate API server URL. All communications with the API server use TLS internally (<code>https://</code> URL scheme). These communications are verified using the API server CA certificate and are authenticated by mean of tokens signed by the same CA.</p>

<p>What you see is the result of a misconfiguration. At first sight it seems like you mixed pod, service and host networks.</p>

<p>Make sure you understand the difference between Host network, Pod network and Service network. These 3 networks can not overlap. For example <code>--pod-network-cidr=192.168.0.0/16</code> must <em>not</em> include the IP address of your host, change it to <code>10.0.0.0/16</code> or something smaller if necessary.</p>

<p>After you have a clear overview of the network topology, run the setup again and everything will be configured correctly, including the Kubernetes CA.</p>
