kubectl create -f https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml
kubectl describe svc/kubernetes-dashboard -n kube-system
kubectl create serviceaccount kadmin -n kube-system
kubectl create clusterrolebinding kadmin --clusterrole=cluster-admin --serviceaccount=kube-system:kadmin
kubectl get secret -n kube-system | grep kadmin | cut -d " " -f1 | xargs -n 1 | xargs kubectl get secret -o 'jsonpath={.data.token}' -n kube-system | base64 --decode
Start the proxy: kubectl proxy
Login using the token from the previous command: http://localhost:8001/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/#!/login