Which resource is used to run scheduled tasks in Kubernetes?

Study for the Kubernetes Certified Network Administrator Exam. Our test offers comprehensive flashcards, multiple-choice questions, and detailed explanations. Be confident for your exam!

Multiple Choice

Which resource is used to run scheduled tasks in Kubernetes?

Explanation:
CronJob is the resource used for scheduled tasks in Kubernetes. It lets you specify a cron-like schedule and a job template; the CronJob controller creates a new Job on the schedule, and that Job runs to completion just like a regular Job. This makes it ideal for periodic tasks such as backups, reports, or cleanup. A plain Job runs once when created, DaemonSet ensures a pod runs on every node (for ongoing node-local tasks), and StatefulSet manages stable identities and storage for stateful applications. So CronJob is the right choice for scheduling work.

CronJob is the resource used for scheduled tasks in Kubernetes. It lets you specify a cron-like schedule and a job template; the CronJob controller creates a new Job on the schedule, and that Job runs to completion just like a regular Job. This makes it ideal for periodic tasks such as backups, reports, or cleanup. A plain Job runs once when created, DaemonSet ensures a pod runs on every node (for ongoing node-local tasks), and StatefulSet manages stable identities and storage for stateful applications. So CronJob is the right choice for scheduling work.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy