CronJobs should be interruptible
Pods serving web traffic (HTTP) are normally disruptible. If you have graceful shutdown handlers configured for your web services, you can kill pods without negatively affecting any requests.
Jobs and CronJobs can also run on your Kubernetes nodes.
You need to be careful with your Pod Disruption Budgets (PDB) to avoid killing your jobs because normally they’re not interruptible.
You should always design your CronJobs to be interruptible so that they can be stopped and started at will.
Like what you've read?
If you're an engineering leader or developer, you should subscribe to my 80/20 DevOps Newsletter. Give me 1 minute of your day, and I'll teach you essential DevOps skills. I cover topics like Kubernetes, AWS, Infrastructure as Code, and more.
Not sure yet? Check out the archive.
Unsubscribe at any time.