We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a8ef52 commit c8d58f3Copy full SHA for c8d58f3
content/en/docs/reference/kubectl/cheatsheet.md
@@ -374,6 +374,8 @@ Examples using `-o=custom-columns`:
374
```bash
375
# All images running in a cluster
376
kubectl get pods -A -o=custom-columns='DATA:spec.containers[*].image'
377
+# All images running in namespace: default, grouped by Pod
378
+kubectl get pods --namespace default --output=custom-columns="NAME:.metadata.name,IMAGE:.spec.containers[*].image"
379
380
# All images excluding "k8s.gcr.io/coredns:1.6.2"
381
kubectl get pods -A -o=custom-columns='DATA:spec.containers[?(@.image!="k8s.gcr.io/coredns:1.6.2")].image'
0 commit comments