Last active
December 9, 2019 14:38
-
-
Save gadelkareem/271cf1d4eb04d91a524fa33431fb4a9f to your computer and use it in GitHub Desktop.
k8s dashboard token
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
#!/usr/bin/env bash | |
kubectl -n kube-system describe secret $( | |
kubectl -n kube-system get secret | \ | |
awk '/^cluster-admin-dashboard-sa-token-/{print $1}' | |
) | \ | |
awk '$1=="token:"{print $2}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment