Created
March 4, 2026 04:41
-
-
Save apinter/ba8778ba893b4fff7d73d145f6929296 to your computer and use it in GitHub Desktop.
list pods with currently running images
This file contains hidden or 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
| #!/bin/bash | |
| for ns in $(kubectl get ns -o jsonpath="{.items[*].metadata.name}"); do | |
| echo "Namespace: $ns" | |
| kubectl get pods --namespace "$ns" -o jsonpath="{.items[*].spec.containers[*].image}" | |
| echo -e "\n" | |
| done | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment