<p>I have configured Kubernetics has 4 node cluster and configured Dashboard from Kubernetics Documentation but able to login with different Token based service account which have different role bind on that account .</p>

<p>But my point is I want to login with Kubeconfig options but I am unable to do so . So help me the steps how to do that. 
<a href="https://i.stack.imgur.com/ijTpR.png" rel="nofollow noreferrer">enter image description here</a></p>

<p>Finally found <a href="https://stackoverflow.com/questions/48228534/kubernetes-dashboard-access-using-config-file-not-enough-data-to-create-auth-inf">this answer</a> after search number of sites .</p>

<pre><code>$ TOKEN=$(kubectl -n kube-system describe secret default| awk '$1=="token:"{print $2}')
$ kubectl config set-credentials kubernetes-admin --token="${TOKEN}"
</code></pre>

<p>Your config file should be looking like this:</p>

<pre><code>$ kubectl config view |cut -c1-50|tail -10
name: kubernetes-admin@kubernetes
current-context: kubernetes-admin@kubernetes
kind: Config
preferences: {}
users:
- name: kubernetes-admin
  user:
    client-certificate-data: REDACTED
    client-key-data: REDACTED
    token: eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.ey
</code></pre>
