I am reaching out for ideas on the following topic. Imagine that we have 1 application. This application needs to execute an interval (cron) job. It doesn't make sense to execute however on all instances of the app. It needs to elect just one of X and execute the task, then on the next execution it would again pick one (like load-balancing).
I know that Kubernetes offers Jobs and CronJobs, but those serve only a single purpose of executing a task and then turning off, which would add more complexity to the solution.
An option is of course to have an external coordinator doing this, but I was wondering what is the Kubernetes way to handle such scenario.
Any ideas welcome, thanks.