Skip to content

Instantly share code, notes, and snippets.

@pgilad
Created June 6, 2019 07:22
Show Gist options
  • Save pgilad/616a4932ecb385711d3e4ab018afc538 to your computer and use it in GitHub Desktop.
Save pgilad/616a4932ecb385711d3e4ab018afc538 to your computer and use it in GitHub Desktop.
Get ALL resources in k8s namespace
#!/bin/bash
kubectl api-resources --verbs=list --namespaced -o name | xargs -n 1 kubectl get --show-kind --ignore-not-found
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment