Skip to content

Instantly share code, notes, and snippets.

@bipin-nag
Created December 29, 2021 02:51
Show Gist options
  • Save bipin-nag/f4e4bdc51b90eb1c4ef32a6d48b0e759 to your computer and use it in GitHub Desktop.
Save bipin-nag/f4e4bdc51b90eb1c4ef32a6d48b0e759 to your computer and use it in GitHub Desktop.
kubernetes-dashboard-token
#!/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