Last active
February 18, 2025 19:13
-
-
Save enchant3dmango/3b0950f9efff88aa912b38184359cfe9 to your computer and use it in GitHub Desktop.
List container images in k8s cluster with size (equal to docker image ls).
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 pods --all-namespaces -o jsonpath='{range .items[*]}{"\n"}{.metadata.name}{":\t"}{range .spec.containers[*]}{.image}{", "}{end}{end}' |\ | |
sort |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment