Last active
June 21, 2022 23:31
-
-
Save deeja/c63ebfc7dac0fdf3970bbca1185d3c43 to your computer and use it in GitHub Desktop.
Kubernetes Dashboard on Docker for Windows
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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