Can a Job have multiple distinct tasks running in different pods under it?

In a K8S cluster when a Job has multiple pods under it, are these all replicas?
Can a Job have 5 pods running under it and each of the pod is basically a different task?

Sort of - you’d have to set it up so they’re all popping items off a queue or fetching work to process things differently. They’re all instances of the same pod spec and entrypoint. They’d need something else to tell them what different items to work on.

1 Like

Is there a way to include multiple pod specs under a Job?

A job has a single podspec, all kubernetes resources are limited to that. You CAN have multiple containers within the pod if that’s what you’re looking to do though.

Thanks @mrbobbytables :slightly_smiling_face:

Sure thing :slight_smile: