Skip to content

Instantly share code, notes, and snippets.

@brannondorsey
Created March 20, 2019 17:39
Show Gist options
  • Save brannondorsey/405112610361f198f81375906a822f54 to your computer and use it in GitHub Desktop.
Save brannondorsey/405112610361f198f81375906a822f54 to your computer and use it in GitHub Desktop.
Kubernetes Notes

Kubernetes Notes

Get Dashboard Token

# get the name of the dashboard token secret.
# e.g. kubernetes-dashboard-token-3anjf
kubectl get secrets -n kube-system

# repolace $SECRET_NAME with your secret
kubectl get secret $SECRET_NAME -n=kube-system -o json | jq -r '.data["token"]' | base64 -d 

Equipped with the dashboard token, you can now run kubectl proxy and then access your kubernetes dashboard at:

http://localhost:8001/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment