Skip to content

Commit 8f1ddcc

Browse files
authored
Update automated-tasks-with-cron-jobs.md
sync with english version
1 parent fdf89d3 commit 8f1ddcc

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

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

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,6 @@ Cron jobs can also schedule individual tasks for a specific time, such as if you
2828

2929
CronJobs 在创建周期性以及重复性的任务时很有帮助,例如执行备份操作或者发送邮件。CronJobs 也可以在特定时间调度单个任务,例如你想调度低活跃周期的任务。
3030

31-
<!--
32-
CronJob resource in `batch/v2alpha1` API group has been deprecated starting from cluster version 1.8.
33-
You should switch to using `batch/v1beta1`, instead, which is enabled by default in the API server.
34-
Examples in this document use `batch/v1beta1` in all examples.
35-
-->
36-
{{< note >}}
37-
从集群版本 1.8 开始,`batch/v2alpha1` API 组中的 CronJob 资源已经被废弃。
38-
你应该切换到 API 服务器默认启用的 `batch/v1beta1` API 组。
39-
本文中的所有示例使用了 `batch/v1beta1`
40-
{{< /note >}}
41-
4231
<!--
4332
Cron jobs have limitations and idiosyncrasies.
4433
For example, in certain circumstances, a single cron job can create multiple jobs.
@@ -179,10 +168,12 @@ Hello from the Kubernetes cluster
179168
<!--
180169
## Deleting a Cron Job
181170
182-
When you don't need a cron job any more, delete it with `kubectl delete cronjob`:
171+
When you don't need a cron job any more, delete it with `kubectl delete cronjob <cronjob name>`:
183172
-->
184173

185-
当你不再需要 CronJob 时,可以用 `kubectl delete cronjob` 删掉它:
174+
## 删除 CronJob
175+
176+
当你不再需要 CronJob 时,可以用 `kubectl delete cronjob <cronjob name>` 删掉它:
186177

187178
```shell
188179
kubectl delete cronjob hello

0 commit comments

Comments
 (0)