Skip to content

Instantly share code, notes, and snippets.

@sandipchitale
Last active January 15, 2023 00:46
Show Gist options
  • Save sandipchitale/b9f81fbae5f67403f3a4429c31abd54b to your computer and use it in GitHub Desktop.
Save sandipchitale/b9f81fbae5f67403f3a4429c31abd54b to your computer and use it in GitHub Desktop.
List images of all pods #kubectl
kubectl get pod -A -o="custom-columns=NAME:.metadata.name,INIT-CONTAINERS:.spec.initContainers[*].name,IMAGE:.spec.initContainers[*].image,CONTAINERS:.spec.containers[*].name,IMAGE:.spec.containers[*].image"
kubectl get pod -o="custom-columns=NAME:.metadata.name,CONTAINERS:.spec.containers[*].name,IMAGE:.spec.containers[*].image"
kubectl get pod -o="custom-columns=NAME:.metadata.name,INIT-CONTAINERS:.spec.initContainers[*].name,IMAGE:.spec.initContainers[*].image,CONTAINERS:.spec.containers[*].name,IMAGE:.spec.containers[*].image"
kubectl run -i --tty --rm debug --image=gcr.io/otl-eng-cs-ia/busybox:latest --restart=Never -- sh
kubectl get ingress ingress-infoarchive --no-headers=true -o="custom-columns=HOSTS:.spec.rules[*].host"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment