Skip to content

Instantly share code, notes, and snippets.

@vishnuhd
Created July 8, 2019 15:27
Show Gist options
  • Save vishnuhd/35f435aa732cafb9aca2203107dbee2c to your computer and use it in GitHub Desktop.
Save vishnuhd/35f435aa732cafb9aca2203107dbee2c to your computer and use it in GitHub Desktop.
Command to get token to login into the K8s Dashboard
kubectl -n kube-system describe secrets \
`kubectl -n kube-system get secrets | awk '/clusterrole-aggregation-controller/ {print $1}'` \
| awk '/token:/ {print $2}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment