1.部署 Kubernetes Dashboard

$ kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.0.0-beta8/aio/deploy/recommended.yaml


2.启动 Kubernetes Dashboard

$ kubectl proxy


3.访问 Kubernetes Dashboard

http://localhost:8001/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy/


4.获取登陆 Dashboard 需要的令牌

$ kubectl -n kube-system describe secret default| awk '$1=="token:"{print $2}'


5.填写令牌,登陆 Dashboard

参考:​​https://github.com/kubernetes/dashboard​