Skip to content

Commit 09e0db8

Browse files
authored
fix: zh docs misleading to en link.
note that: 1. links reachable with `/zh` prefix is simply added prefix. 2. links redirected after visit and reachable with `/zh` prefix is updated to the redirected link and added prefix. 3. links or redirected links results with 404 after added `/zh` prefix is not changed.
1 parent 059fb9e commit 09e0db8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Cron jobs are useful for creating periodic and recurring tasks, like running bac
2727
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.
2828
-->
2929

30-
你可以利用 [CronJobs](/docs/concepts/workloads/controllers/cron-jobs) 执行基于时间调度的任务。这些自动化任务和 Linux 或者 Unix 系统的 [Cron](https://en.wikipedia.org/wiki/Cron) 任务类似。
30+
你可以利用 [CronJobs](/zh/docs/concepts/workloads/controllers/cron-jobs) 执行基于时间调度的任务。这些自动化任务和 Linux 或者 Unix 系统的 [Cron](https://en.wikipedia.org/wiki/Cron) 任务类似。
3131

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

@@ -51,7 +51,7 @@ For more limitations, see [CronJobs](/docs/concepts/workloads/controllers/cron-j
5151
CronJobs 有一些限制和特点。
5252
例如,在特定状况下,同一个 CronJob 可以创建多个任务。
5353
因此,任务应该是幂等的。
54-
查看更多限制,请参考 [CronJobs](/docs/concepts/workloads/controllers/cron-jobs)
54+
查看更多限制,请参考 [CronJobs](/zh/docs/concepts/workloads/controllers/cron-jobs)
5555

5656

5757

@@ -67,7 +67,7 @@ for more), and then restart both the API server and the controller manager
6767
component.
6868
-->
6969

70-
* 你需要一个版本 >=1.8 且工作正常的 Kubernetes 集群。对于更早的版本( <1.8 ),你需要对 API 服务器设置 `--runtime-config=batch/v2alpha1=true` 来开启 `batch/v2alpha1` API,(更多信息请查看 [为你的集群开启或关闭 API 版本](/docs/admin/cluster-management/#turn-on-or-off-an-api-version-for-your-cluster)
70+
* 你需要一个版本 >=1.8 且工作正常的 Kubernetes 集群。对于更早的版本( <1.8 ),你需要对 API 服务器设置 `--runtime-config=batch/v2alpha1=true` 来开启 `batch/v2alpha1` API,(更多信息请查看 [为你的集群开启或关闭 API 版本](/zh/docs/tasks/administer-cluster/cluster-management/#打开或关闭集群的-api-版本)
7171
), 然后重启 API 服务器和控制管理器。
7272

7373

@@ -192,7 +192,7 @@ Deleting the cron job removes all the jobs and pods it created and stops it from
192192
You can read more about removing jobs in [garbage collection](/docs/concepts/workloads/controllers/garbage-collection/).
193193
-->
194194

195-
删除 CronJob 会清除它创建的所有任务和 Pod,并阻止它创建额外的任务。你可以查阅 [垃圾收集](/docs/concepts/workloads/controllers/garbage-collection/)
195+
删除 CronJob 会清除它创建的所有任务和 Pod,并阻止它创建额外的任务。你可以查阅 [垃圾收集](/zh/docs/concepts/workloads/controllers/garbage-collection/)
196196

197197
<!--
198198
## Writing a Cron Job Spec
@@ -206,7 +206,7 @@ A cron job config also needs a [`.spec` section](https://git.k8s.io/community/co
206206

207207
## 编写 CronJob 声明信息
208208

209-
像 Kubernetes 的其他配置一样,CronJob 需要 `apiVersion``kind`、 和 `metadata` 域。配置文件的一般信息,请参考 [部署应用](/docs/user-guide/deploying-applications)[使用 kubectl 管理资源](/docs/user-guide/working-with-resources).
209+
像 Kubernetes 的其他配置一样,CronJob 需要 `apiVersion``kind`、 和 `metadata` 域。配置文件的一般信息,请参考 [部署应用](/zh/docs/tasks/run-application/run-stateless-application-deployment/)[使用 kubectl 管理资源](/zh/docs/concepts/overview/working-with-objects/object-management/).
210210

211211
CronJob 配置也需要包括[`.spec`](https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status).
212212

0 commit comments

Comments
 (0)