Print all pod names in a namespace.
Section: JSONPath Output Recipes
List pod names
bash
bash
kubectl get pods -n payments -o jsonpath='{.items[*].metadata.name}'Explanation
Print all pod names in a namespace.
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