Skip to content

Instantly share code, notes, and snippets.

@gadelkareem
Last active December 9, 2019 14:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gadelkareem/271cf1d4eb04d91a524fa33431fb4a9f to your computer and use it in GitHub Desktop.
Save gadelkareem/271cf1d4eb04d91a524fa33431fb4a9f to your computer and use it in GitHub Desktop.
k8s dashboard token
#!/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