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.
2 parents 999175b + 5316aaf commit 27cf5a0Copy full SHA for 27cf5a0
content/en/docs/reference/kubectl/cheatsheet.md
@@ -387,6 +387,9 @@ Examples using `-o=custom-columns`:
387
# All images running in a cluster
388
kubectl get pods -A -o=custom-columns='DATA:spec.containers[*].image'
389
390
+# All images running in namespace: default, grouped by Pod
391
+kubectl get pods --namespace default --output=custom-columns="NAME:.metadata.name,IMAGE:.spec.containers[*].image"
392
+
393
# All images excluding "k8s.gcr.io/coredns:1.6.2"
394
kubectl get pods -A -o=custom-columns='DATA:spec.containers[?(@.image!="k8s.gcr.io/coredns:1.6.2")].image'
395
0 commit comments