hardkubectl
Extract the container image names for all pods in the current namespace
command
kubectl get pods -o jsonpath='{.items[*].spec.containers[*].image}'also accepted
kubectl get pods -o jsonpathcommand
kubectl get pods -o jsonpath='{.items[*].spec.containers[*].image}'also accepted
kubectl get pods -o jsonpathPart of the Kubernetes CLI (kubectl) — Pods category.
| Flag | Purpose |
|---|---|
-o | Boolean flag |
Test your recall — not just your reading.
Practice with interactive quiz →