title: How to sign in kubernetes dashboard?
body: <p>I just upgraded kubeadm and kubelet to v1.8.0. And install the dashboard following the official <a href="https://github.com/kubernetes/dashboard" rel="noreferrer">document</a>.</p>
  
  <pre><code>$ kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml
  </code></pre>
  
  <p>After that, I started the dashboard by running</p>
  
  <pre><code>$ kubectl proxy --address="192.168.0.101" -p 8001 --accept-hosts='^*$'
  </code></pre>
  
  <p>Then fortunately, I was able to access the dashboard thru <a href="http://192.168.0.101:8001/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/" rel="noreferrer">http://192.168.0.101:8001/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/</a></p>
  
  <p>I was redirected to a login page like this which I had never met before. 
  <a href="https://i.stack.imgur.com/5dy2F.png" rel="noreferrer"><img src="https://i.stack.imgur.com/5dy2F.png" alt="enter image description here"></a> It looks like that there are two ways of authentication. </p>
  
  <p>I tried to upload the <code>/etc/kubernetes/admin.conf</code> as the kubeconfig but got failed. Then I tried to use the token I got from <code>kubeadm token list</code> to sign in but failed again. </p>
  
  <p>The question is how I can sign in the dashboard. It looks like they added a lot of security mechanism than before. Thanks. </p>