Created
July 17, 2018 01:22
-
-
Save diversario/e59dbdd79003ff458b9eb2777edd7397 to your computer and use it in GitHub Desktop.
Useful kubectl one-liners
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
# get all evicted pods in the cluster | |
kubectl get pod --all-namespaces --field-selector status.phase=Failed --show-all -o json | jq -r '.items[] | select(.status.reason == "Evicted") | "\(.metadata.namespace)/\(.metadata.name)"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment