Last active
September 29, 2016 20:57
-
-
Save paultyng/0efde9cc7faf2f852d3e14188e609393 to your computer and use it in GitHub Desktop.
Get kubernetes restart counts > 0
This file contains hidden or 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 -o json | | |
jq '.items[] | .metadata.name + " " + (.status.containerStatuses[].restartCount | tostring)' -r | | |
awk '$2 > 0 { print $1 " " $2 }' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment