From 61b9264881bbac53d05f6fd554be89820dbbd6dd Mon Sep 17 00:00:00 2001 From: xin gu <418294249@qq.com> Date: Wed, 23 Aug 2023 19:37:19 +0800 Subject: [PATCH] sync automated-tasks-with-cron-jobs coarse-parallel-processing-work-queue fine-parallel-processing-work-queue indexed-parallel-processing-static parallel-processing-expansion pod-failure-policy sync automated-tasks-with-cron-jobs coarse-parallel-processing-work-queue fine-parallel-processing-work-queue indexed-parallel-processing-static parallel-processing-expansion pod-failure-policy --- .../zh-cn/docs/tasks/job/automated-tasks-with-cron-jobs.md | 2 +- .../docs/tasks/job/coarse-parallel-processing-work-queue.md | 4 ++-- .../docs/tasks/job/fine-parallel-processing-work-queue.md | 4 ++-- .../docs/tasks/job/indexed-parallel-processing-static.md | 4 ++-- .../zh-cn/docs/tasks/job/parallel-processing-expansion.md | 2 +- content/zh-cn/docs/tasks/job/pod-failure-policy.md | 6 +++--- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/content/zh-cn/docs/tasks/job/automated-tasks-with-cron-jobs.md b/content/zh-cn/docs/tasks/job/automated-tasks-with-cron-jobs.md index 1d201b56c9..9186d4dfc4 100644 --- a/content/zh-cn/docs/tasks/job/automated-tasks-with-cron-jobs.md +++ b/content/zh-cn/docs/tasks/job/automated-tasks-with-cron-jobs.md @@ -38,7 +38,7 @@ Here is a manifest for a CronJob that runs a simple demonstration task every min CronJob 需要一个配置文件。 以下是针对一个 CronJob 的清单,该 CronJob 每分钟运行一个简单的演示任务: -{{< codenew file="application/job/cronjob.yaml" >}} +{{% code file="application/job/cronjob.yaml" %}} Job 中每个 Pod 内的 “工作程序” 使用工作队列客户端库获取工作。具体如下: -{{< codenew language="python" file="application/job/redis/worker.py" >}} +{{% code language="python" file="application/job/redis/worker.py" %}} 首先,将以下作业模板下载到名为 `job-tmpl.yaml` 的文件中。 -{{< codenew file="application/job/job-tmpl.yaml" >}} +{{% code file="application/job/job-tmpl.yaml" %}} ```shell # 使用 curl 下载 job-tmpl.yaml diff --git a/content/zh-cn/docs/tasks/job/pod-failure-policy.md b/content/zh-cn/docs/tasks/job/pod-failure-policy.md index 435564891d..62e325135e 100644 --- a/content/zh-cn/docs/tasks/job/pod-failure-policy.md +++ b/content/zh-cn/docs/tasks/job/pod-failure-policy.md @@ -72,7 +72,7 @@ Pod 失效策略来避免不必要的 Pod 重启。 首先,基于配置创建一个 Job: -{{< codenew file="/controllers/job-pod-failure-policy-failjob.yaml" >}} +{{% code file="/controllers/job-pod-failure-policy-failjob.yaml" %}} 1. 基于配置创建 Job: - {{< codenew file="/controllers/job-pod-failure-policy-ignore.yaml" >}} + {{% code file="/controllers/job-pod-failure-policy-ignore.yaml" %}} 1. 首先基于配置创建一个 Job: - {{< codenew file="/controllers/job-pod-failure-policy-config-issue.yaml" >}} + {{% code file="/controllers/job-pod-failure-policy-config-issue.yaml" %}}