Forked from ipedrazas/gist:83326e03c9d893a3ab1bdbd048d2e6be
Created
March 7, 2022 21:05
-
-
Save arno01/036aebfde71a9a553519dfc5a6c6ef8b to your computer and use it in GitHub Desktop.
Curl Kubernetes API Server from a Pod
This file contains 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 -k -X GET \ | |
-H "Authorization: Bearer $(cat /var/run/secrets/kubernetes.io/serviceaccount/token)" \ | |
https://$KUBERNETES_PORT_443_TCP_ADDR:$KUBERNETES_SERVICE_PORT_HTTPS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment