<p>Whenever a job run fails I want to suspend cronjob so that no further jobs are started. Is their any possible way?
k8s version: 1.10</p>

<p>you can configure it simply using <code>suspend: true</code></p>
<pre><code>apiVersion: batch/v1
kind: Job
metadata:
  name: my-job
spec:
  suspend: true
  parallelism: 2
  completions: 10
  template:
    spec:
      containers:
      - name: my-container
        image: busybox
        command: [&quot;sleep&quot;, &quot;5&quot;]
      restartPolicy: Never
</code></pre>
<p>Any currently running jobs will complete but future jobs will be suspended.</p>
<p>Read more at : <a href="https://kubernetes.io/blog/2021/04/12/introducing-suspended-jobs/" rel="nofollow noreferrer">https://kubernetes.io/blog/2021/04/12/introducing-suspended-jobs/</a></p>
<p>If you are on an older version you can use <code>backoffLimit: 1</code></p>
<pre><code>apiVersion: batch/v1
kind: Job
metadata:
  name: error
spec:
  backoffLimit: 1
  template:
</code></pre>
<p><code>.spec.backoffLimit</code> can limit the number of time a pod is restarted when running inside a job</p>
<p>If you can't suspend it however we make sure job won't get re-run using</p>
<blockquote>
<p><strong>backoffLimit</strong> means the number of times it will retry before it is
considered failed. The default is 6.</p>
<p><strong>concurrencyPolicy</strong> means it will run 0 or 1 times, but
not more.</p>
<p><strong>restartPolicy</strong>: Never means it won't restart on failure.</p>
</blockquote>
