Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

kubernetes

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?

like image 640
Pranjal Mittal Avatar asked Dec 05 '22 21:12

Pranjal Mittal


2 Answers

You can use the describe command:

kubectl describe pod [podname]

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

like image 103
Jon Skeet Avatar answered Mar 05 '23 05:03

Jon Skeet


Use -

kubectl describe pod pod_name
like image 28
shubham_asati Avatar answered Mar 05 '23 04:03

shubham_asati