I want to use K8s's cronjob to run python code periodically

hi :slight_smile:

I’m using Python to create code that takes data from one server, preprocesses it, and stores it in another database. I’m trying to make sure this work goes on a regular basis. The first choice was using airflow. But as application get biger, I want to apply K8s. I think CronJob is the best choice. Would this work be possible and a good way to do it?
And, is their any example for this kink of work?

If your requirement is only about running something periodically, you don’t have to apply k8s. A simple crontab entry could solve the problem easily.