Skip to content

Instantly share code, notes, and snippets.

@strongant
Created September 20, 2023 08:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save strongant/313ceae7cc1a46b543cd4bd2475277ff to your computer and use it in GitHub Desktop.
Save strongant/313ceae7cc1a46b543cd4bd2475277ff to your computer and use it in GitHub Desktop.
get k8s pods
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