File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
content/zh-cn/docs/concepts/workloads/controllers Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -1227,13 +1227,14 @@ Pod 终结器,Job 控制器就会给 Job 添加 `Complete` 或 `Failed` 终止
1227
1227
1228
1228
<!--
1229
1229
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)
1232
1232
[feature gates](/docs/reference/command-line-tools-reference/feature-gates/).
1233
1233
-->
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
+ 来控制这一行为。
1237
1238
1238
1239
<!--
1239
1240
# ## Termination of Job pods
@@ -1975,10 +1976,10 @@ status:
1975
1976
<!--
1976
1977
You can only set the ` managedBy` field on Jobs if you enable the `JobManagedBy`
1977
1978
[feature gate](/docs/reference/command-line-tools-reference/feature-gates/)
1978
- (disabled by default).
1979
+ (enabled by default).
1979
1980
-->
1980
1981
你只有在启用了 `JobManagedBy`
1981
- [特性门控](/zh-cn/docs/reference/command-line-tools-reference/feature-gates/)(默认禁用 )时,
1982
+ [特性门控](/zh-cn/docs/reference/command-line-tools-reference/feature-gates/)(默认开启 )时,
1982
1983
才可以在 Job 上设置 `managedBy` 字段。
1983
1984
{{< /note >}}
1984
1985
You can’t perform that action at this time.
0 commit comments