A CronJob is scheduled to run by a user every one hour. What happens in the cluster when it's time for this CronJob to run?
- Kubelet watches API Server for CronJob objects. When it's time for a Job to run, it runs the Pod directly.
- Kube-scheduler watches API Server for CronJob objects, and this is why it's called kube-scheduler.
- CronJob controller component creates a Pod and waits until it finishes to run.
- CronJob controller component creates a Job. Then the Job controller creates a Pod and waits until it finishes to run.
Reveal Solution Next Question