Skip to content

Instantly share code, notes, and snippets.

@enchant3dmango
Last active February 18, 2025 19:13
Show Gist options
  • Save enchant3dmango/3b0950f9efff88aa912b38184359cfe9 to your computer and use it in GitHub Desktop.
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).
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