Sometimes, it’s necessary to schedule an application process, some repetitive operations, like sending emails, alerts, verifications, and so on.
On a server, we usually use a cron, which is easy to set up and maintain. If you aren’t familiar with it, you can find here all you need to know.
It is also possible to run a crontab using Docker, but how do you do that using Kubernetes?
Indeed, Kubernetes runs differently, because it is possible to have one or more instances of the same services in a load balance case, a crontab should run just once, regardless of several up instances.
#devops #kubernates #cronjobs