Keep and Share logo     Log In  |  Mobile View  |  Help  
 
Visiting
 
Select a Color
   
 
Kubernetes - How to enumerate all containers? 

Creation date: Jan 1, 2024 1:15am     Last modified date: Jan 1, 2024 1:15am   Last visit date: Dec 14, 2024 12:28pm
2 / 20 posts
Jan 1, 2024  ( 1 post, 1 reply )  
1/1/2024
1:15am
Ottis Pfannerstill (ladexo)

 

Can anyone tell me how I can enumerate all containers in a Kubernetes cluster using kubectl? What commands should I use to do this?

1:20am
Brian Torphy (joxojej)

If you want to bring up the entire kubernetes container listing via the scripting mechanism kubectl, you will need to enter the query get pods and then enter other commands if you need to say shrink the list of containers or something like that. See this page for more information on these commands http://devhubby.com/thread/how-to-list-containers-in-kubernetes.