title: How can I access to kubernetes dashboard using NodePort in a remote cluster for testing?
body: <p>I have a testing Kubernetes cluster  running in remote VMs (on VSphere), I have full access to the VMs through <code>ssh</code> (they have private IPs). How can I expose services and access them from outside the cluster (from my remote laptop trying to get access to the machines) knowing that I can remotely perform all kubectl commands.</p>
  
  <p>For example: I tried with the dashboard, I installed it, I have changed the service to NodePort, and I tried to access to it from my laptop using this URL <code>http:master-private-ip:exposedport</code>, also with worker IPs, but it does not work. It returns in browser only <code>�</code> (binary output). When I try to connect through <code>https</code>, it trows a certificates error.</p>
  
  <pre><code>$ kubectl get svc -n kube-system -l k8s-app=kubernetes-dashboard
    NAME                   TYPE           CLUSTER-IP       EXTERNAL-IP   PORT(S)         AGE
    kubernetes-dashboard   NodePort       10.97.143.110    &lt;none&gt;        443:30714/TCP   42m
  $ kubectl  proxy -p 8001
  $ curl http://172.16.5.226:30714 --output -
  </code></pre>
  
  <p>I have expected that the output shows me the <code>html</code> from the UI of the Kubernetes dashboard</p>