Skip to content

Commit 83469fc

Browse files
authored
Merge pull request #49045 from Eason1118/patch-5
[zh-cn] Update job.md 2.0
2 parents c828bf6 + 53a3b1e commit 83469fc

File tree

1 file changed

+8
-7
lines changed
  • content/zh-cn/docs/concepts/workloads/controllers

1 file changed

+8
-7
lines changed

content/zh-cn/docs/concepts/workloads/controllers/job.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1227,13 +1227,14 @@ Pod 终结器,Job 控制器就会给 Job 添加 `Complete` 或 `Failed` 终止
12271227

12281228
<!--
12291229
In Kubernetes v1.31 and later, the controller only adds the Job terminal conditions
1230-
_after_ all of the Pods are terminated. You can enable this behavior by using the
1231-
`JobManagedBy` or the `JobPodReplacementPolicy` (enabled by default)
1230+
_after_ all of the Pods are terminated. You can control this behavior by using the
1231+
`JobManagedBy` and the `JobPodReplacementPolicy` (both enabled by default)
12321232
[feature gates](/docs/reference/command-line-tools-reference/feature-gates/).
12331233
-->
1234-
在 Kubernetes v1.31 及更高版本中,控制器仅在所有 Pod 终止后添加 Job 终止状况。
1235-
你可以使用 `JobManagedBy` 或 `JobPodReplacementPolicy`(默认启用)
1236-
启用此行为的[特性门控](/zh-cn/docs/reference/command-line-tools-reference/feature-gates/)。
1234+
在 Kubernetes v1.31 及更高版本中,控制器仅在所有 Pod 都终止**之后**才会添加作业(Job)的终止条件。
1235+
你可以通过使用 `JobManagedBy` 和 `JobPodReplacementPolicy`(都默认启用)
1236+
[特性门控](/zh-cn/docs/reference/command-line-tools-reference/feature-gates/)
1237+
来控制这一行为。
12371238

12381239
<!--
12391240
### Termination of Job pods
@@ -1975,10 +1976,10 @@ status:
19751976
<!--
19761977
You can only set the `managedBy` field on Jobs if you enable the `JobManagedBy`
19771978
[feature gate](/docs/reference/command-line-tools-reference/feature-gates/)
1978-
(disabled by default).
1979+
(enabled by default).
19791980
-->
19801981
你只有在启用了 `JobManagedBy`
1981-
[特性门控](/zh-cn/docs/reference/command-line-tools-reference/feature-gates/)(默认禁用)时,
1982+
[特性门控](/zh-cn/docs/reference/command-line-tools-reference/feature-gates/)(默认开启)时,
19821983
才可以在 Job 上设置 `managedBy` 字段。
19831984
{{< /note >}}
19841985

0 commit comments

Comments
 (0)