<p>I have deployed kubernetes and the dashboard onto a compute instance in Oracle cloud.  </p>

<p>I have the dashboard installed with grafana onto my compute instance. </p>

<pre><code>NAME                                       READY     STATUS    RESTARTS   AGE
po/etcd-mst-instance1                      1/1       Running   0          1h
po/heapster-7856f6b566-rkfx5               1/1       Running   0          1h
po/kube-apiserver-mst-instance1            1/1       Running   0          1h
po/kube-controller-manager-mst-instance1   1/1       Running   0          1h
po/kube-dns-d879d6bcb-b9zjf                3/3       Running   0          1h
po/kube-flannel-ds-lgklw                   1/1       Running   0          1h
po/kube-proxy-g6vxm                        1/1       Running   0          1h
po/kube-scheduler-mst-instance1            1/1       Running   0          1h
po/kubernetes-dashboard-dd5c889c-6vphq     1/1       Running   0          1h
po/monitoring-grafana-5d4d76cd65-p7n5l     1/1       Running   0          1h
po/monitoring-influxdb-787479f6fd-8qkg2    1/1       Running   0          1h

NAME                       TYPE        CLUSTER-IP       EXTERNAL-IP   PORT(S)         AGE
svc/heapster               ClusterIP   10.98.200.184    &lt;none&gt;        80/TCP          1h
svc/kube-dns               ClusterIP   10.96.0.10       &lt;none&gt;        53/UDP,53/TCP   1h
svc/kubernetes-dashboard   ClusterIP   10.107.155.3     &lt;none&gt;        443/TCP         1h
svc/monitoring-grafana     ClusterIP   10.96.130.226    &lt;none&gt;        80/TCP          1h
svc/monitoring-influxdb    ClusterIP   10.105.163.213   &lt;none&gt;        8086/TCP        1h 
</code></pre>

<p>I am trying to access the dashboard via SSH and did the below in my local computer:</p>

<pre><code>ssh -L localhost:8001:172.31.4.117:6443 opc@xxxxxxxx
</code></pre>

<p>However, it tells me this error :</p>

<pre><code>Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
</code></pre>

<p>Im not sure what is the best way to access the dashboard. I am new at k8s and still at a beginner stage so would want to consult as I have also tried doing kubectl proxy on my local computer but when i try to access 127.0.0.1 it gives me this error:</p>

<pre><code>I0804 17:01:28.902675   77193 logs.go:41] http: proxy error: dial tcp [::1]:8080: connect: connection refused
</code></pre>

<p>Would really appreciaate any help and thank you</p>

Adam
<p>Kubernetes includes a <a href="https://github.com/kubernetes/dashboard" rel="nofollow noreferrer">web dashboard</a> that can be used for basic management operations.</p>

<p>Once Dashboard is installed on your <a href="https://kubernetes.io" rel="nofollow noreferrer">Kubernetes</a> cluster, it can be accessed in a few different ways.</p>

<p>I prefer to use the <code>kubectl proxy</code> from the command line to access Kubernetes Dashboard.</p>

<p><a href="https://github.com/kubernetes/kubectl" rel="nofollow noreferrer">Kubectl</a> does for you: authentication with API server and forward traffic between
your cluster (with Dashboard deployed inside) and your web browser.
Please notice that kubectl does it for a local running web browser, as it is running on
a localhost.</p>

<p>From the command line:</p>

<pre><code>kubectl proxy
</code></pre>

<p>Next, start browsing this address: </p>

<pre><code>http://localhost:8001/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/
</code></pre>

<p>In case <a href="https://github.com/kubernetes/apiserver" rel="nofollow noreferrer">Kubernetes API server</a> is exposed and accessible, you may try:</p>

<pre><code>https://&lt;master-ip&gt;:&lt;apiserver-port&gt;/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/
</code></pre>

<p>where master-ip is the IP address of your Kubernetes master node where API is running.</p>

<p>On single node setup, another way is use <a href="https://matthewpalmer.net/kubernetes-app-developer/articles/kubernetes-ports-targetport-nodeport-service.html" rel="nofollow noreferrer">NodePort</a> configuration to access Dashboard.</p>

<p>I found it on dashboard wiki:</p>

<p>Here is a sample of configuration to consider and adapt to your needs:</p>

<pre><code>apiVersion: v1
...
  name: kubernetes-dashboard
  namespace: kube-system
  resourceVersion: "343478"
  selfLink: /api/v1/namespaces/kube-system/services/kubernetes-dashboard-head
spec:
  clusterIP: &lt;your-cluster-ip&gt;
  externalTrafficPolicy: Cluster
  ports:
  - port: 443
    protocol: TCP
    targetPort: 8443
  selector:
    k8s-app: kubernetes-dashboard
  sessionAffinity: None
  type: NodePort
</code></pre>

<p>After applying configuration, check for the exposed port for https using the command:</p>

<pre><code>kubectl -n kube-system get service kubernetes-dashboard
</code></pre>

<p>If it returned for example 31707, you could start your browser with:</p>

<pre><code>https://&lt;master-ip&gt;:31707
</code></pre>

<p>I was inspired by <a href="https://kubernetes.io/docs/tasks/access-application-cluster/web-ui-dashboard/" rel="nofollow noreferrer">web ui dashboard guide</a> and <a href="https://github.com/kubernetes/dashboard/wiki/Accessing-Dashboard---1.7.X-and-above" rel="nofollow noreferrer">accessing dashboard wiki</a>.</p>
