Created
November 13, 2023 14:23
-
-
Save gbevan/b1f691e26c0d6d6b2494b48198bc9883 to your computer and use it in GitHub Desktop.
sort k8s images by size
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 nodes -o json | | |
jq '.items[].status.images[] | [.sizeBytes, .names[0]] | @csv' -r | | |
sed -e 's/"//g' | | |
sed 's/,/ /g' | | |
sort -k1n |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment