You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A _Cron Job_creates [Jobs](/docs/concepts/workloads/controllers/jobs-run-to-completion/)on a time-based schedule.
15
+
A _CronJob_creates {{< glossary_tooltip term_id="job" text="Jobs" >}} on a repeating schedule.
16
16
17
17
One CronJob object is like one line of a _crontab_ (cron table) file. It runs a job periodically
18
18
on a given schedule, written in [Cron](https://en.wikipedia.org/wiki/Cron) format.
@@ -27,14 +27,26 @@ The name must be no longer than 52 characters. This is because the CronJob contr
27
27
append 11 characters to the job name provided and there is a constraint that the
28
28
maximum length of a Job name is no more than 63 characters.
29
29
30
-
For instructions on creating and working with cron jobs, and for an example of a spec file for a cron job, see [Running automated tasks with cron jobs](/docs/tasks/job/automated-tasks-with-cron-jobs).
31
30
32
31
{{% /capture %}}
32
+
{{% capture body %}}
33
33
34
+
## CronJob
34
35
35
-
{{% capture body %}}
36
+
CronJobs are useful for creating periodic and recurring tasks, like running backups or
37
+
sending emails. CronJobs can also schedule individual tasks for a specific time, such as
38
+
scheduling a Job for when your cluster is likely to be idle.
39
+
40
+
### Example
41
+
42
+
This example CronJob manifest prints the current time and a hello message every minute:
0 commit comments