Created
July 13, 2019 00:14
-
-
Save sandipchitale/0e759bac45f2e4d51f7939dd227401b2 to your computer and use it in GitHub Desktop.
Talk to API server from inside the container. #kubernetes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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