@@ -364,7 +364,8 @@ Jobs with _fixed completion count_ - that is, jobs that have non null
364
364
- As part of the Pod hostname, following the pattern `$(job-name)-$(index)`.
365
365
When you use an Indexed Job in combination with a
366
366
{{< glossary_tooltip term_id="Service" >}}, Pods within the Job can use
367
- the deterministic hostnames to address each other via DNS.
367
+ the deterministic hostnames to address each other via DNS. For more information about
368
+ how to configure this, see [Job with Pod-to-Pod Communication](/docs/tasks/job/job-with-pod-to-pod-communication/).
368
369
- From the containerized task, in the environment variable `JOB_COMPLETION_INDEX`.
369
370
370
371
The Job is considered complete when there is one successfully completed Pod
@@ -382,6 +383,7 @@ Jobs with _fixed completion count_ - that is, jobs that have non null
382
383
- 作为 Pod 主机名的一部分,遵循模式 ` $(job-name)-$(index) ` 。
383
384
当你同时使用带索引的 Job(Indexed Job)与 {{< glossary_tooltip term_id="Service" >}},
384
385
Job 中的 Pod 可以通过 DNS 使用确切的主机名互相寻址。
386
+ 有关如何配置的更多信息,请参阅[ 带 Pod 间通信的 Job] ( /zh-cn/docs/tasks/job/job-with-pod-to-pod-communication/ ) 。
385
387
- 对于容器化的任务,在环境变量 ` JOB_COMPLETION_INDEX ` 中。
386
388
387
389
当每个索引都对应一个成功完成的 Pod 时,Job 被认为是已完成的。
@@ -719,6 +721,7 @@ The pattern names are also links to examples and more detailed description.
719
721
| [Pod 数量可变的队列](/zh-cn/docs/tasks/job/fine-parallel-processing-work-queue/) | ✓ | ✓ | |
720
722
| [静态任务分派的带索引的 Job](/zh-cn/docs/tasks/job/indexed-parallel-processing-static) | ✓ | | ✓ |
721
723
| [Job 模板扩展](/zh-cn/docs/tasks/job/parallel-processing-expansion/) | | | ✓ |
724
+ | [带 Pod 间通信的 Job](/zh-cn/docs/tasks/job/job-with-pod-to-pod-communication/) | ✓ | 有时 | 有时 |
722
725
723
726
<!--
724
727
When you specify completions with `.spec.completions`, each Pod created by the Job controller
@@ -745,6 +748,7 @@ Here, `W` is the number of work items.
745
748
| [Pod 个数可变的队列](/zh-cn/docs/tasks/job/fine-parallel-processing-work-queue/) | 1 | 任意值 |
746
749
| [静态任务分派的带索引的 Job](/zh-cn/docs/tasks/job/indexed-parallel-processing-static) | W | | 任意值 |
747
750
| [Job 模板扩展](/zh-cn/docs/tasks/job/parallel-processing-expansion/) | 1 | 应该为 1 |
751
+ | [带 Pod 间通信的 Job](/zh-cn/docs/tasks/job/job-with-pod-to-pod-communication/) | W | W |
748
752
749
753
<!--
750
754
# # Advanced usage
@@ -943,7 +947,7 @@ The [suspend](#suspending-a-job) field is the first step towards achieving those
943
947
custom queue controller to decide when a job should start; However, once a job is unsuspended,
944
948
a custom queue controller has no influence on where the pods of a job will actually land.
945
949
-->
946
- [suspend](#suspend -a-job) 字段是实现这些语义的第一步。
950
+ [suspend](#suspending -a-job) 字段是实现这些语义的第一步。
947
951
suspend 允许自定义队列控制器,以决定工作何时开始;然而,一旦工作被取消暂停,
948
952
自定义队列控制器对 Job 中 Pod 的实际放置位置没有影响。
949
953
@@ -1099,7 +1103,7 @@ Pod disruption conditions in the Pod failure policy (see also:
1099
1103
available in Kubernetes v1.25.
1100
1104
-->
1101
1105
只有你在集群中启用了
1102
- ` JobPodFailurePolicy ` [ 特性门控] ( /zh-cn/docs/reference/command-line-tools-reference/feature-gates/ )
1106
+ ` JobPodFailurePolicy ` [ 特性门控] ( /zh-cn/docs/reference/command-line-tools-reference/feature-gates/ ) ,
1103
1107
你才能为某个 Job 配置 Pod 失效策略。
1104
1108
此外,建议启用 ` PodDisruptionConditions ` 特性门控以便在 Pod 失效策略中检测和处理 Pod 干扰状况
1105
1109
(参考:[ Pod 干扰状况] ( /zh-cn/docs/concepts/workloads/pods/disruptions#pod-disruption-conditions ) )。
@@ -1193,6 +1197,7 @@ being counted towards the `.spec.backoffLimit` limit of retries.
1193
1197
Pod 失效策略的第二条规则,
1194
1198
指定对于状况为 ` DisruptionTarget ` 的失效 Pod 采取 ` Ignore ` 操作,
1195
1199
统计 ` .spec.backoffLimit ` 重试次数限制时不考虑 Pod 因干扰而发生的异常。
1200
+
1196
1201
{{< note >}}
1197
1202
<!--
1198
1203
If the Job failed, either by the Pod failure policy or Pod backoff
@@ -1256,10 +1261,10 @@ and the [controller manager](/docs/reference/command-line-tools-reference/kube-c
1256
1261
It is enabled by default.
1257
1262
-->
1258
1263
要使用该行为,你必须为 [ API 服务器] ( /zh-cn/docs/reference/command-line-tools-reference/kube-apiserver/ )
1259
- 和[ 控制器管理器] ( /zh-cn/docs/reference/command-line-tools-reference/kube-controller-manager/ )
1260
- 启用 ` JobTrackingWithFinalizers `
1264
+ 和[ 控制器管理器] ( /zh-cn/docs/reference/command-line-tools-reference/kube-controller-manager/ ) 启用
1265
+ ` JobTrackingWithFinalizers `
1261
1266
[ 特性门控] ( /zh-cn/docs/reference/command-line-tools-reference/feature-gates/ ) 。
1262
- 默认是启用的 。
1267
+ 该特性默认是启用的 。
1263
1268
1264
1269
<!--
1265
1270
When enabled, the control plane tracks new Jobs using the behavior described
@@ -1410,5 +1415,6 @@ object, but maintains complete control over what Pods are created and how work i
1410
1415
* 基于一个模板运行多个 Job:[ 使用展开的方式进行并行处理] ( /zh-cn/docs/tasks/job/parallel-processing-expansion/ )
1411
1416
* 跟随[ 自动清理完成的 Job] ( #clean-up-finished-jobs-automatically ) 文中的链接,了解你的集群如何清理完成和失败的任务。
1412
1417
* ` Job ` 是 Kubernetes REST API 的一部分。阅读 {{< api-reference page="workload-resources/job-v1" >}}
1413
- 对象定义理解关于该资源的 API。
1414
- * 阅读 [ ` CronJob ` ] ( /zh-cn/docs/concepts/workloads/controllers/cron-jobs/ ) ,它允许你定义一系列定期运行的 Job,类似于 UNIX 工具 ` cron ` 。
1418
+ 对象定义理解关于该资源的 API。
1419
+ * 阅读 [ ` CronJob ` ] ( /zh-cn/docs/concepts/workloads/controllers/cron-jobs/ ) ,
1420
+ 它允许你定义一系列定期运行的 Job,类似于 UNIX 工具 ` cron ` 。
0 commit comments