CronJobs should be interruptible

Yesterday’s topic were Pod Disruption Budgets.

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.

Join the 80/20 DevOps Newsletter

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.