Created
September 20, 2023 08:24
-
-
Save strongant/313ceae7cc1a46b543cd4bd2475277ff to your computer and use it in GitHub Desktop.
get k8s pods
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 -s $APISERVER/api/v1/namespaces/default/pods/ --header "Authorization: Bearer $TOKEN" --cacert /tmp/ca.crt | jq -rM '.items[].metadata.name' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment