List all containers inside pods
Posted on November 23, 2021
To list all containers inside all pods run the following kubectl command:
Kubectl Command:
$ kubectl get po -o jsonpath='{range .items[*]}{"pod: "}{.metadata.name}{"\n"}{range .spec.containers[*]}{"\tname: "}{.name}{"\n\timage: "}{.image}{"\n"}{end}'