title: Site can not be reached problem while accessing on local laptop from deployed kubernetes dashboard service on remote machine
body: <p>When I am trying to access the Kubernetes dashboard service from my local laptop, I am getting the message that site can not be reached.</p>
  
  <p>Procedure followed:</p>
  
  <p>I followed the documentation from the following link,</p>
  
  <p><a href="https://kubernetes.io/docs/tasks/access-application-cluster/web-ui-dashboard/" rel="nofollow noreferrer">https://kubernetes.io/docs/tasks/access-application-cluster/web-ui-dashboard/</a></p>
  
  <p>I created my cluster with one master and one worker node on my premise machine. Each machine is ubuntu 16.04. And I installed kubectl and accessing this cluster from my control vm where I am running Jenkins for ci/cd pipeline. From this control vm I followed to bind the clusterrole and deployed the Kubernetes dashboard as explained in the documentation.</p>
  
  <p>I run the following command for deploying the default dashboard service from my control vm by using kuectl command (outside the cluster):</p>
  
  <pre><code>kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.0.0-beta8/aio/deploy/recommended.yaml
  </code></pre>
  
  <p>I created the role binding yaml <code>dashboard-adminuser.yaml</code> with following content ,</p>
  
  <pre><code>apiVersion: rbac.authorization.k8s.io/v1
  kind: ClusterRoleBinding
  metadata:
    name: admin-user
  roleRef:
    apiGroup: rbac.authorization.k8s.io
    kind: ClusterRole
    name: cluster-admin
  subjects:
  - kind: ServiceAccount
    name: admin-user
    namespace: kubernetes-dashboard
  </code></pre>
  
  <p>And created this by using the following command:</p>
  
  <pre><code> kubectl apply -f dashboard-adminuser.yaml
  </code></pre>
  
  <p>Accessed the token by using following command:</p>
  
  <pre><code>kubectl -n kubernetes-dashboard describe secret $(kubectl -n kubernetes-dashboard get secret | grep admin-user | awk '{print $1}')
  </code></pre>
  
  <p>And run the following command for serving the dashboard service:</p>
  
  <pre><code>kubectl proxy
  </code></pre>
  
  <p>When I run the command showing "Starting serving on 127.0.0.1:8001".</p>
  
  <p>And I tried to access the dashboard by putting the following URL on browser,</p>
  
  <p><a href="http://192.168.16.170:8001/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/" rel="nofollow noreferrer">http://192.168.16.170:8001/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/</a></p>
  
  <p>But I am only getting the message that site can not be reached.</p>
  
  <p><strong>Updates</strong></p>
  
  <p>Now I am trying to access using <strong>NodePort mechanism by editing the dashboard service type</strong> to <code>NodePort</code> type. When I am trying to access the URL , I am getting the error like "your connection is not private". I am adding the screenshot below,</p>
  
  <p><a href="https://i.stack.imgur.com/yZP8X.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yZP8X.png" alt="enter image description here"></a>                                  </p>
  
  <p>Where have I gone wrong?</p>