How to check the containers running on a pod in kubernettes?

6/4/2015

I am able to get a list of all pods running on a kubernetes cluster using:

kubectl get pods

How do I get all the containers running on a particular pod?

-- Pranjal Mittal
kubernetes

2 Answers

6/4/2015

You can use the describe command:

kubectl describe pod [podname]

That will specify which containers are in the pod, along with other information.

-- Jon Skeet
Source: StackOverflow

2/5/2019

Use -

kubectl describe pod pod_name
-- shubham_asati
Source: StackOverflow