Skip to content

Commit d747c14

Browse files
authored
Merge pull request #35055 from ydFu/Update-page-in-indexed-parallel-processing-static
[zh] updated /tasks/job/indexed-parallel-processing-static.md
2 parents 09e5041 + d0a620c commit d747c14

File tree

1 file changed

+24
-14
lines changed

1 file changed

+24
-14
lines changed

content/zh-cn/docs/tasks/job/indexed-parallel-processing-static.md

Lines changed: 24 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Pod 索引在{{<glossary_tooltip text="注解" term_id="annotation" >}}
4141
为了让容器化的任务进程获得此索引,你可以使用
4242
[downward API](/zh-cn/docs/tasks/inject-data-application/downward-api-volume-expose-pod-information/#the-downward-api)
4343
机制发布注解的值。为方便起见,
44-
控制平面自动设置 downward API 以在 `JOB_COMPLETION_INDEX` 环境变量中公开索引。
44+
控制平面自动设置 Downward API 以在 `JOB_COMPLETION_INDEX` 环境变量中公开索引。
4545

4646
<!--
4747
Here is an overview of the steps in this example:
@@ -69,8 +69,10 @@ non-parallel, use of [Job](/docs/concepts/workloads/controllers/job/).
6969

7070
<!-- steps -->
7171

72-
<!-- ## Choose an approach -->
73-
## 选择一种方法
72+
<!--
73+
## Choose an approach
74+
-->
75+
## 选择一种方法 {#choose-an-approach}
7476

7577
<!--
7678
To access the work item from the worker program, you have a few options:
@@ -84,7 +86,7 @@ To access the work item from the worker program, you have a few options:
8486
that reads the index using any of the methods above and converts it into
8587
something that the program can use as input.
8688
-->
87-
要从工作程序访问工作项,你有几个选择
89+
要从工作程序访问工作项,你有几个选项
8890

8991
1. 读取 `JOB_COMPLETION_INDEX` 环境变量。Job
9092
{{< glossary_tooltip text="控制器" term_id="controller" >}}
@@ -98,7 +100,7 @@ For this example, imagine that you chose option 3 and you want to run the
98100
[rev](https://man7.org/linux/man-pages/man1/rev.1.html) utility. This
99101
program accepts a file as an argument and prints its content reversed.
100102
-->
101-
对于此示例,假设你选择了方法 3 并且想要运行
103+
对于此示例,假设你选择了选项 3 并且想要运行
102104
[rev](https://man7.org/linux/man-pages/man1/rev.1.html) 实用程序。
103105
这个程序接受一个文件作为参数并按逆序打印其内容。
104106

@@ -125,14 +127,15 @@ the start of the clip.
125127
由于这只是一个例子,每个 Pod 只做一小部分工作(反转一个短字符串)。
126128
例如,在实际工作负载中,你可能会创建一个表示基于场景数据制作 60 秒视频任务的 Job 。
127129
此视频渲染 Job 中的每个工作项都将渲染该视频剪辑的特定帧。
128-
索引完成意味着 Job 中的每个 Pod 都知道通过从剪辑开始计算帧数,来确定渲染和发布哪一帧,。
129-
130-
<!-- ## Define an Indexed Job -->
131-
## 定义索引作业
130+
索引完成意味着 Job 中的每个 Pod 都知道通过从剪辑开始计算帧数,来确定渲染和发布哪一帧。
132131

133132
<!--
133+
## Define an Indexed Job
134+
134135
Here is a sample Job manifest that uses `Indexed` completion mode:
135136
-->
137+
## 定义索引作业 {#define-an-indexed-job}
138+
136139
这是一个使用 `Indexed` 完成模式的示例 Job 清单:
137140

138141
{{< codenew language="yaml" file="application/job/indexed-job.yaml" >}}
@@ -168,10 +171,13 @@ like shown in the following example:
168171

169172
{{< codenew language="yaml" file="application/job/indexed-job-vol.yaml" >}}
170173

171-
<!-- ## Running the Job -->
172-
## 执行 Job
174+
<!--
175+
## Running the Job
176+
177+
Now run the Job:
178+
-->
179+
## 执行 Job {running-the-job}
173180

174-
<!-- Now run the Job: -->
175181
现在执行 Job:
176182

177183
```shell
@@ -199,7 +205,9 @@ Once you have created the Job, wait a moment then check on progress:
199205
kubectl describe jobs/indexed-job
200206
```
201207

202-
<!-- The output is similar to: -->
208+
<!--
209+
The output is similar to:
210+
-->
203211
输出类似于:
204212

205213
```
@@ -268,7 +276,9 @@ inspect the output of one of the pods:
268276
kubectl logs indexed-job-fdhq5 # 更改它以匹配来自该 Job 的 Pod 的名称
269277
```
270278

271-
<!-- The output is similar to: -->
279+
<!--
280+
The output is similar to:
281+
-->
272282
输出类似于:
273283

274284
```

0 commit comments

Comments
 (0)