To do a quick setup of k8s and access that in WSL on windows follow the steps here
The k8s single node cluster installed via Docker for Desktop does not include the Kubernetes Dashboard by default but we can always deploy that on our cluster
kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/master/aio/deploy/recommended/kubernetes-dashboard.yaml
To access the kubernetes-dashboard after switching the context
- The dashboard is deployed in kube-system namespace. Find out if its running by
kubectl get pod --namespace=kube-system | grep dashboard
- create a NodePort service similar to this one exposing the dashboard
- To sign in to the dashboard, navigate to https://localhost:31234 in Firefox and follow the steps here to get a token