DEV Community

Discussion on: Understanding Kubernetes: part 2 - CronJobs

Collapse
 
sunflower profile image
sunflowerseed

I mean, why run Kubernetes cronjobs? Why not just start it manually? Is it just to automate some task by invoking a pod?

Thread Thread
 
aurelievache profile image
Aurélie Vache

It's for automated tasks yes.

A cronjob scheduled every 10 minutes, will spawn a new pod every 10 minutes.

If a pod failed, you can watch the logs, analyze and understand why this case has failed.