Scheduling a controller to run every one hour in Kubernetes

11/29/2018

I have a console application which does some operations when run and I generate an image of it using docker. Now, I would like to deploy it to Kubernetes and run it every hour, is it possible that I could do it in K8?

I have read about Cron jobs but that's being offered only from version 1.4

-- DoIt
kubernetes
scheduler

1 Answer

11/29/2018

The short answer. Sure, you can do it with a CronJob and yes it does create a Pod. You can configure Job History Limits to control how many failed, completed pods you want to keep before Kubernetes deletes them.

Note that CronJob is a subset of the Job resource.

-- Rico
Source: StackOverflow