Created
April 26, 2019 10:50
-
-
Save stuart-warren/661094f389c109174027a44e806396ed to your computer and use it in GitHub Desktop.
total kubernetes volume allocation per namespace
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 pvc --all-namespaces | numfmt --from=iec-i --header --field 5 | tail -n +2 | awk '{ print $5,"\t",$1 }' | awk '{i[$2]+=$1} END{for(x in i){print i[x]" "x}}' | numfmt --to=iec-i |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment