<p>I have scheduled an application to run as a <code>CronJob</code> in Kubernetes. When there is a code change, I'm also changing the image of the <code>CronJob</code>.</p>
<p>I'm looking for an option where I can disable the currently running <code>CronJob</code> and deploy a new <code>CronJob</code> with the latest image version.</p>
<p>How can I disable a <code>CronJob</code> in Kubernetes without deleting its <code>Deployment</code>?</p>

<p>If you want to suspend cronjob via patch, use:</p>
<pre><code>kubectl patch cronjobs &lt;job-name&gt; -p '{&quot;spec&quot; : {&quot;suspend&quot; : true }}'
</code></pre>
