Skip to content

Commit 8af5fb9

Browse files
Tim Bannisterk8s-ci-robot
authored andcommitted
Mark CronJob as beta (#17985)
CronJob went beta in v1.8 and is not yet in general availability.
1 parent 114743a commit 8af5fb9

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

content/en/docs/concepts/workloads/controllers/cron-jobs.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ weight: 80
1010

1111
{{% capture overview %}}
1212

13+
{{< feature-state for_k8s_version="v1.8" state="beta" >}}
14+
1315
A _Cron Job_ creates [Jobs](/docs/concepts/workloads/controllers/jobs-run-to-completion/) on a time-based schedule.
1416

1517
One CronJob object is like one line of a _crontab_ (cron table) file. It runs a job periodically

content/en/docs/tasks/job/automated-tasks-with-cron-jobs.md

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,33 +8,23 @@ weight: 10
88

99
{{% capture overview %}}
1010

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.
1212
These automated jobs run like [Cron](https://en.wikipedia.org/wiki/Cron) tasks on a Linux or UNIX system.
1313

1414
Cron jobs are useful for creating periodic and recurring tasks, like running backups or sending emails.
1515
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.
1616

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-
2317
Cron jobs have limitations and idiosyncrasies.
2418
For example, in certain circumstances, a single cron job can create multiple jobs.
2519
Therefore, jobs should be idempotent.
20+
2621
For more limitations, see [CronJobs](/docs/concepts/workloads/controllers/cron-jobs).
2722

2823
{{% /capture %}}
2924

3025
{{% capture prerequisites %}}
3126

3227
* {{< 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
37-
component.
3828

3929
{{% /capture %}}
4030

0 commit comments

Comments
 (0)