Extract pod names from kubectl JSON output.
Section: AWS, kubectl, and Docker
List Kubernetes pod names
bash
bash
kubectl get pods -o json | jq -r '.items[].metadata.name'Explanation
Perfect for loops and quick visibility.
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 AWS, kubectl, and Docker