# get the name of the dashboard token secret.
# e.g. kubernetes-dashboard-token-3anjf
kubectl get secrets -n kube-system
# repolace $SECRET_NAME with your secret
kubectl get secret $SECRET_NAME -n=kube-system -o json | jq -r '.data["token"]' | base64 -d
Equipped with the dashboard token, you can now run kubectl proxy
and then access your kubernetes dashboard at:
http://localhost:8001/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy