Per official documentation: Deploy:
kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.7.0/aio/deploy/recommended.yaml
Access, open a terminal and run:
kubectl proxy
Now, access Dashboard with browser at:
http://localhost:8001/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy/
To get a token for a default kubernetes-dashboard serviceaccount (you can use another serviceaccount) use:
kubectl -n kubernetes-dashboard create token kubernetes-dashboard