Skip to content

Instantly share code, notes, and snippets.

@stuart-warren
Created April 26, 2019 10:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stuart-warren/661094f389c109174027a44e806396ed to your computer and use it in GitHub Desktop.
Save stuart-warren/661094f389c109174027a44e806396ed to your computer and use it in GitHub Desktop.
total kubernetes volume allocation per namespace
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