Keep and Share logo     Log In  |  Mobile View  |  Help  
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: Jun 9, 2024 12:30pm
2 / 20 posts
Jan 1, 2024  ( 1 post, 1 reply )  
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?

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