Skip to content

Instantly share code, notes, and snippets.

@sandipchitale
Created July 13, 2019 00:14
Show Gist options
  • Save sandipchitale/0e759bac45f2e4d51f7939dd227401b2 to your computer and use it in GitHub Desktop.
Save sandipchitale/0e759bac45f2e4d51f7939dd227401b2 to your computer and use it in GitHub Desktop.
Talk to API server from inside the container. #kubernetes
curl -ik \
-H "Authorization: Bearer $(cat /var/run/secrets/kubernetes.io/serviceaccount/token)" \
https://kubernetes.default.svc.cluster.local/api/v1/namespaces/default/pods
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment