Section: JSONPath Output Recipes

List pod images

bash
bash
kubectl get pods -n payments -o jsonpath='{range .items[*]}{.metadata.name}{"\t"}{.spec.containers[*].image}{"\n"}{end}'
Explanation

Print pod names and container images.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing JSONPath Output Recipes
List pod names
Print all pod names in a namespace.
OpenIn sheetbashsame section
List node internal IPs
Print node names with internal IPs.
OpenIn sheetbashsame section
List service ports
Print service port mappings.
OpenIn sheetbashsame section
List secret keys
Print the secret data object keys and values.
OpenIn sheetbashsame section
List pod restart counts
Print pod restart counts.
OpenIn sheetbashsame section
List ingress hosts
Print ingress names and hosts.
OpenIn sheetbashsame section