3 ms·
More like the job controller: https://github.com/kubernetes/kubernetes/blob/master/pkg/controller/job/job_controller.go https://github.com/kubernetes/kubernetes
by 0xbadcafebee 4y ago
More like the job controller: https://github.com/kubernetes/kubernetes/blob/master/pkg/controller/job/job_controller.go https://github.com/kubernetes/kubernetes/blob/master/pkg/con...
It's a loop that schedules jobs. When you create a job it starts them, when one crashes it schedules another, when you delete one it stops them. Systemd already does this for a single node's service units, so all that's lacking is doing this across nodes.