k8s dashboard - timowang1991/kubernetes-docs GitHub Wiki
follow the steps here from k8s docs
- start dashboard
kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.4.0/aio/deploy/recommended.yaml
kubectl apply -f k8s/dash-admin-user.yaml
kubectl apply -f k8s/dash-clusterrole.yaml
kubectl proxy
-
open browser: http://localhost:8001/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy/
- if you see empty dashboard, log out then log in again with the token in the next step
-
get token if you need to login
kubectl -n kubernetes-dashboard get secret $(kubectl -n kubernetes-dashboard get sa/admin-user -o jsonpath="{.secrets[0].name}") -o go-template="{{.data.token | base64decode}}"
kubectl delete -f k8s/dash-admin-user.yaml
kubectl delete -f k8s/dash-clusterrole.yaml
kubectl proxy