Skip to content

Instantly share code, notes, and snippets.

@mig82
Created January 9, 2026 10:33
Show Gist options
  • Select an option

  • Save mig82/f88e41dbbd8838352b83f4ffe158c6fa to your computer and use it in GitHub Desktop.

Select an option

Save mig82/f88e41dbbd8838352b83f4ffe158c6fa to your computer and use it in GitHub Desktop.
Kubectl list pods along with corresponding images
# Add -l foo=bar to filter by labels
kubectl get pods --Ao jsonpath=\
'{range .items[*]}{@.metadata.namespace}{"\t"}{@.metadata.name}{"\t"}{@.spec.containers[*].image}{"\n"}{end}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment