Skip to content

Instantly share code, notes, and snippets.

@aaam
Created November 21, 2018 09:36
Show Gist options
  • Save aaam/20f617d78352524312ec061aad7e3efb to your computer and use it in GitHub Desktop.
Save aaam/20f617d78352524312ec061aad7e3efb to your computer and use it in GitHub Desktop.
kubectl -n kube-system describe secret `kubectl -n kube-system get secret|grep replicaset|cut -d\ -f1`|awk '/^token/{print $NF}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment