<p>Before to start I have just one question about kubernetes, usually linux server have  not graphic interface, so how the admin can access to k8S dashboard ?</p>

<p>Is there any other solution expect ssh tunnel ?</p>

<p>I have tried ssh tunnel but not working</p>

<p>Master command I have executed:</p>

<pre><code>kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.0.0-beta1/aio/deploy/recommended.yaml
namespace/kubernetes-dashboard unchanged
serviceaccount/kubernetes-dashboard unchanged
service/kubernetes-dashboard unchanged
secret/kubernetes-dashboard-certs unchanged
secret/kubernetes-dashboard-csrf unchanged
secret/kubernetes-dashboard-key-holder unchanged
configmap/kubernetes-dashboard-settings unchanged
role.rbac.authorization.k8s.io/kubernetes-dashboard unchanged
clusterrole.rbac.authorization.k8s.io/kubernetes-dashboard unchanged
rolebinding.rbac.authorization.k8s.io/kubernetes-dashboard unchanged
clusterrolebinding.rbac.authorization.k8s.io/kubernetes-dashboard unchanged
deployment.apps/kubernetes-dashboard configured
service/dashboard-metrics-scraper configured
deployment.apps/kubernetes-metrics-scraper created
[rbo@K8SMaster ~]$ kubectl proxy
Starting to serve on 127.0.0.1:8001
</code></pre>

<p>Tunnel SSH done on remote machine:</p>

<pre><code>Authenticated to k8smaster ([192.168.1.15]:22).
debug1: Local connections to LOCALHOST:8080 forwarded to remote address localhost:8001
debug1: Local forwarding listening on ::1 port 8080.
debug2: fd 5 setting O_NONBLOCK
debug1: channel 0: new [port listener]
debug1: Local forwarding listening on 127.0.0.1 port 8080.
debug2: fd 6 setting O_NONBLOCK
debug1: channel 1: new [port listener]
debug2: fd 3 setting TCP_NODELAY
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
</code></pre>

<p>Browser message from remote machine:</p>

<pre><code>  "kind": "Status",
  "apiVersion": "v1",
  "metadata": {

  },
  "status": "Failure",
  "message": "services \"kubernetes-dashboard\" not found",
  "reason": "NotFound",
  "details": {
    "name": "kubernetes-dashboard",
    "kind": "services"
  },
  "code": 404
}
</code></pre>

rab
<p>I did a UI tool to help you to forward any service to your local machine.</p>

<p>You can see an example of how to forward the dashboard:</p>

<p><img src="https://user-images.githubusercontent.com/36018976/71369322-ab7d3900-25aa-11ea-8968-ab64188419e1.gif" alt="Tunnel dashboard"></p>

<p>Here is the repository link on how to getting started: <a href="https://github.com/vicjicaman/linker-tool" rel="nofollow noreferrer">linker-tool</a></p>

<p>If you have any question please open an issue or contact me, I am happy to help.</p>
