Skip to content

Commit 27cf5a0

Browse files
authored
Merge pull request #26574 from AliRezaTaleghani/patch-1
Update cheatsheet.md
2 parents 999175b + 5316aaf commit 27cf5a0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

content/en/docs/reference/kubectl/cheatsheet.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,9 @@ Examples using `-o=custom-columns`:
387387
# All images running in a cluster
388388
kubectl get pods -A -o=custom-columns='DATA:spec.containers[*].image'
389389

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+
390393
# All images excluding "k8s.gcr.io/coredns:1.6.2"
391394
kubectl get pods -A -o=custom-columns='DATA:spec.containers[?(@.image!="k8s.gcr.io/coredns:1.6.2")].image'
392395

0 commit comments

Comments
 (0)