openshift ocp3.11 get all pods in all projects

Posted on

so what I am trying to do is to get all the pods or projects that are using a specific image.

I was thinking to export out all the "oc describe" to all the project (preferably with one command) and then I can search the image within.

or if I can get all the pods in the project sort by image used, then I can achieve the same as well.

Just looking for an ideas. coz I have about 50 projects that I am trying to find which project is using phtyon2 image.

Thanks,

Responses