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
Copy file name to clipboardExpand all lines: content/en/docs/tasks/job/automated-tasks-with-cron-jobs.md
+2-12Lines changed: 2 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,33 +8,23 @@ weight: 10
8
8
9
9
{{% capture overview %}}
10
10
11
-
You can use [CronJobs](/docs/concepts/workloads/controllers/cron-jobs)to run jobs on a time-based schedule.
11
+
You can use a {{< glossary_tooltip text="CronJob" term_id="cronjob" >}} to run {{< glossary_tooltip text="Jobs" term_id="job" >}} on a time-based schedule.
12
12
These automated jobs run like [Cron](https://en.wikipedia.org/wiki/Cron) tasks on a Linux or UNIX system.
13
13
14
14
Cron jobs are useful for creating periodic and recurring tasks, like running backups or sending emails.
15
15
Cron jobs can also schedule individual tasks for a specific time, such as if you want to schedule a job for a low activity period.
16
16
17
-
{{< note >}}
18
-
CronJob resource in `batch/v2alpha1` API group has been deprecated starting from cluster version 1.8.
19
-
You should switch to using `batch/v1beta1`, instead, which is enabled by default in the API server.
20
-
Examples in this document use `batch/v1beta1` in all examples.
21
-
{{< /note >}}
22
-
23
17
Cron jobs have limitations and idiosyncrasies.
24
18
For example, in certain circumstances, a single cron job can create multiple jobs.
25
19
Therefore, jobs should be idempotent.
20
+
26
21
For more limitations, see [CronJobs](/docs/concepts/workloads/controllers/cron-jobs).
27
22
28
23
{{% /capture %}}
29
24
30
25
{{% capture prerequisites %}}
31
26
32
27
* {{< include "task-tutorial-prereqs.md" >}} {{< version-check >}}
33
-
* You need a working Kubernetes cluster at version >= 1.8 (for CronJob). For previous versions of cluster (< 1.8)
34
-
you need to explicitly enable `batch/v2alpha1` API by passing `--runtime-config=batch/v2alpha1=true` to
35
-
the API server (see [Turn on or off an API version for your cluster](/docs/admin/cluster-management/#turn-on-or-off-an-api-version-for-your-cluster)
36
-
for more), and then restart both the API server and the controller manager
0 commit comments