I have set a N replica pods running workers celery. Now I need to setup a cron JOB running a celery producer script then I need to be able to get a container id for container using a tagged image.
So how to list all container id for multi-containers (container A and container B) pod where container A is using a tagged image C.
One way is to do "kubectl get pods" to get all pod names, then do "kubectl get pod " for each pod. See this documentation page for information about the templating arguments you can use with "kubectl get pod" to just select the fields you want (for example, image).