Last active
February 9, 2024 02:14
-
-
Save TotallyNotAHaxxer/dcd7bda322658917088c2a5745925669 to your computer and use it in GitHub Desktop.
KSAUTO
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
export APISERVER=https://${KUBERNETES_SERVICE_HOST} | |
export SERVICEACCOUNT=/run/secrets/kubernetes.io/serviceaccount | |
export NAMESPACE=$(cat ${SERVICEACCOUNT}/namespace) | |
export TOKEN=$(cat ${SERVICEACCOUNT}/token) | |
export TOKEN=$(cat ${SERVICEACCOUNT}/token) | |
export CACERT=${SERVICEACCOUNT}/ca.crt | |
curl --cacert ${CACERT} --header "Authorization: Bearer ${TOKEN}" -X GET ${APISERVER}/api |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment