Created
December 29, 2021 02:51
-
-
Save bipin-nag/f4e4bdc51b90eb1c4ef32a6d48b0e759 to your computer and use it in GitHub Desktop.
kubernetes-dashboard-token
This file contains 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
#!/bin/bash | |
TOKEN=$(kubectl -n kube-system describe secret default| awk '$1=="token:"{print $2}') | |
echo $TOKEN | |
# kubectl config set-credentials kubernetes-admin --token="${TOKEN}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment