Skip to content

Instantly share code, notes, and snippets.

@AndreKR
Created December 13, 2018 22:38
Show Gist options
  • Save AndreKR/a9819aa7b626927ae189f4e33fdb5af2 to your computer and use it in GitHub Desktop.
Save AndreKR/a9819aa7b626927ae189f4e33fdb5af2 to your computer and use it in GitHub Desktop.
Get all resources in a Kubernetes cluster

kubectl api-resources --verbs=list -o name | xargs -n 1 -t kubectl get --ignore-not-found --all-namespaces

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment