Skip to content

Instantly share code, notes, and snippets.

@deeja
Last active June 21, 2022 23:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save deeja/c63ebfc7dac0fdf3970bbca1185d3c43 to your computer and use it in GitHub Desktop.
Save deeja/c63ebfc7dac0fdf3970bbca1185d3c43 to your computer and use it in GitHub Desktop.
Kubernetes Dashboard on Docker for Windows
## Instructions
https://collabnix.com/kubernetes-dashboard-on-docker-desktop-for-windows-2-0-0-3-in-2-minutes/
## Dashboard URL
http://localhost:8001/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/#!/overview?namespace=default
# Add Dashboard to cluster
kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v1.10.1/src/deploy/recommended/kubernetes-dashboard.yaml
# Run a Proxy
kubectl proxy
# Get the default token from the system to use on the dashboard login screen
kubectl -n kube-system describe secret default
# AND / OR
# Create a token
$TOKEN=((kubectl -n kube-system describe secret default | Select-String "token:") -split " +")[1]
# Set for the user docker-for-desktop (might be docker-desktop if 'for' doesn't work)
kubectl config set-credentials docker-for-desktop --token="${TOKEN}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment