<p>Our requirement is we need to do batch processing every 3 hours but single process can not handle the work load. we have to run multiple pods for the same cron job. Is there any way to do that ?</p>

<p>Thank you.</p>

Nidhi Agarwal
<p>You can provide <code>parallelism: &lt;num_of_pods&gt;</code> to <code>cronjob.spec.jobTemplate.spec</code> and it will run the multiple pods () at the same time.</p>

<p>Following is the example of a cronjob which runs 3 nginx pod every minute.</p>

<pre><code>apiVersion: batch/v1beta1
kind: CronJob
metadata:
  creationTimestamp: null
  labels:
    run: cron1
  name: cron1
spec:
  concurrencyPolicy: Allow
  jobTemplate:
    metadata:
      creationTimestamp: null
    spec:
      parallelism: 3
      template:
        metadata:
          creationTimestamp: null
          labels:
            run: cron1
        spec:
          containers:
          - image: nginx
            name: cron1
            resources: {}
          restartPolicy: OnFailure
  schedule: '*/1 * * * *'
  concurrencyPolicy: Forbid
status: {}
</code></pre>
