Created
April 9, 2018 15:23
-
-
Save ipedrazas/dba99c97e4e8f7415974c7a202db4ab0 to your computer and use it in GitHub Desktop.
Running pods
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
kubectl get pods --all-namespaces -o json \ | |
| jq -r '.items[] | \ | |
select(.status.phase != "Running" or ([ .status.conditions[] | \ | |
select(.type == "Ready" and .state == false) ] | length ) == 1 ) | \ | |
.metadata.namespace + "/" + .metadata.name' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment