A cronjob can be useful for recurring "jobs". If you want to run automatically a program which retrieve images and export them in PDF, for example, it's possible in a cronjob. You can schedule the cronjob.
I mean, why run Kubernetes cronjobs? Why not just start it manually? Is it just to automate some task by invoking a pod?
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.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
A cronjob can be useful for recurring "jobs".
If you want to run automatically a program which retrieve images and export them in PDF, for example, it's possible in a cronjob.
You can schedule the cronjob.
I mean, why run Kubernetes cronjobs? Why not just start it manually? Is it just to automate some task by invoking a pod?
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.