Skip to content

Instantly share code, notes, and snippets.

@karancode
Created February 6, 2020 12:43
Show Gist options
  • Select an option

  • Save karancode/ffa95c5809ff428ff75008d4ebff9cae to your computer and use it in GitHub Desktop.

Select an option

Save karancode/ffa95c5809ff428ff75008d4ebff9cae to your computer and use it in GitHub Desktop.
kubernetes pod's status's count.
$ kubectl get po -owide | grep -v Running | awk '{print $3}' | awk '{num[$1]+=1}END{for(i in num){print i, num[i]}}'
@karancode
Copy link
Author

Thanks to @mune-hirakawa!

@mune-hirakawa
Copy link

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment