How do i list all containers in Kubernetes cluster using kubectl?
Current documentation doesn't mention anything like 'container' resource.
kubectl get pod -o json
lists all pods which contains container descriptions. But is it possible to list containers as first class citizens?
-o=value, likekubectl get pods --all-namespaces -o='custom-columns=NameSpace:.metadata.namespace,NAME:.metadata.name,CONTAINERS:.spec.containers[*].name'– Steve Campbell Jan 20 '21 at 15:28