Skip to content

Instantly share code, notes, and snippets.

@vi7
Created January 9, 2020 12:45
Show Gist options
  • Save vi7/69a4a835dbf4f66b48ffcbaeed93e874 to your computer and use it in GitHub Desktop.
Save vi7/69a4a835dbf4f66b48ffcbaeed93e874 to your computer and use it in GitHub Desktop.
kubectl cheat sheet
# Get all Evicted Pods (for the namespace 'default')
kubectl get po -ojsonpath="{.items[?(@.status.reason=='Evicted')].metadata.name}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment