<p>I think I am misunderstanding Kubernetes CronJobs. On the CKAD exam there was a question to have a CronJob run every minute, but it should start after an arbitrary amount of time. I don't see any properties for CronJobs or Jobs to have them start after a specific time. Should that be part of the cron string or am I completely misunderstanding?</p>

humiliatedpenguin
<p>You could do something like</p>
<p><em>@reboot sleep 60 &amp;&amp; script.sh</em></p>
<p>though you don't mention boot time specifically. You can also add sleep to the crontab.</p>
<p>Another way is to create a systemd service (<strong>note:</strong> on systems with systemd installed)</p>
<pre><code>[Unit]
Description=cronjob with delay
After=(some criteria)

[Service]
Type=oneshot
ExecStart=/pathto/script.sh

[Install]
WantedBy=
</code></pre>
