<p>Using google Kubernetes engine:</p>

<pre><code>kubectl cluster-info
kubernetes-dashboard is running at https://x.x.x.x/api/v1/namespaces/kube-system/services/kubernetes-dashboard/proxy
</code></pre>

<p>If I go to the link:</p>

<p>I get to a forbidden page and if I accepts I get the following:</p>

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

  },
  "status": "Failure",
  "message": "services \"kubernetes-dashboard\" is forbidden: User \"system:anonymous\" cannot get services/proxy in the namespace \"kube-system\": Unknown user \"system:anonymous\"",
  "reason": "Forbidden",
  "details": {
    "name": "kubernetes-dashboard",
    "kind": "services"
  },
  "code": 403
}
</code></pre>

<p>Is it not possible to access the dashboard?</p>

<p>This message says, you should login with valid authentication to the UI Dashboard it can be with token or cluster config. If you want to login using token, follow the steps below:</p>

<ol>
<li><p>Get list of all secret tokens:</p>

<p>kubectl -n kube-system get secret</p></li>
<li><p>Get the token:</p>

<p>kubectl -n kube-system describe secret [NameOfToken] </p></li>
<li><p>Run Proxy:</p>

<p>kubectl proxy</p></li>
<li><p>Enter the dashboard link:</p>

<p><a href="http://localhost:8001/ui" rel="nofollow noreferrer">http://localhost:8001/ui</a></p></li>
<li><p>Copy the token and order it in one line and put it on dashboard UI</p></li>
</ol>
