Skip to content

Instantly share code, notes, and snippets.

@ayosec
Created January 22, 2018 01:23
Show Gist options
  • Save ayosec/4b2da37885453043b414d5543b5c0310 to your computer and use it in GitHub Desktop.
Save ayosec/4b2da37885453043b414d5543b5c0310 to your computer and use it in GitHub Desktop.
$ cd /var/run/secrets/kubernetes.io/serviceaccount/
$ curl --cacert ca.crt -H "Authorization: Bearer `cat token`" https://kubernetes.default/api/v1/pods?watch=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment