You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/zh-cn/docs/reference/kubernetes-api/workload-resources/job-v1.md
+41-59Lines changed: 41 additions & 59 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ api_metadata:
6
6
content_type: "api_reference"
7
7
description: "Job 表示单个任务的配置。"
8
8
title: "Job"
9
-
weight: 10
9
+
weight: 11
10
10
---
11
11
<!--
12
12
api_metadata:
@@ -16,7 +16,7 @@ kind: "Job"
16
16
content_type: "api_reference"
17
17
description: "Job represents the configuration of a single job."
18
18
title: "Job"
19
-
weight: 10
19
+
weight: 11
20
20
auto_generated: true
21
21
-->
22
22
@@ -146,19 +146,6 @@ JobSpec 描述了任务执行的情况。
146
146
147
147
将来可能添加更多的完成模式。如果 Job 控制器发现它无法识别的模式
148
148
(这种情况在升级期间由于版本偏差可能发生),则控制器会跳过 Job 的更新。
149
-
150
-
<!--
151
-
Possible enum values:
152
-
- `"Indexed"` is a Job completion mode. In this mode, the Pods of a Job get an associated completion index from 0 to (.spec.completions - 1). The Job is considered complete when a Pod completes for each completion index.
153
-
- `"NonIndexed"` is a Job completion mode. In this mode, the Job is considered complete when there have been .spec.completions successfully completed Pods. Pod completions are homologous to each other.
154
-
-->
155
-
156
-
可能的枚举值:
157
-
-`"Indexed"` 是一种 Job 完成模式。在此模式下,Job 的 Pod 会获得一个从 0 到
158
-
`.spec.completions - 1` 的关联完成索引值。当每个完成索引值都有一个 Pod 完成时,
- `"Count"` This is an action which might be taken on a pod failure - the pod failure is handled in the default way - the counter towards .backoffLimit, represented by the job's .status.failed field, is incremented.
323
-
- `"FailIndex"` This is an action which might be taken on a pod failure - mark the Job's index as failed to avoid restarts within this index. This action can only be used when backoffLimitPerIndex is set.
324
-
- `"FailJob"` This is an action which might be taken on a pod failure - mark the pod's job as Failed and terminate all running pods.
325
-
- `"Ignore"` This is an action which might be taken on a pod failure - the counter towards .backoffLimit, represented by the job's .status.failed field, is not incremented and a replacement pod is created.
podReplacementPolicy specifies when to create replacement Pods. Possible values are: - TerminatingOrFailed means that we recreate pods
570
-
when they are terminating (has a metadata.deletionTimestamp) or failed.
571
-
- Failed means to wait until a previously created Pod is fully terminated (has phase
572
-
Failed or Succeeded) before creating a replacement Pod.
573
-
-->
574
-
-**podReplacementPolicy**(string)
575
-
576
-
`podReplacementPolicy` 指定何时创建替代的 Pod。可能的值包括:
577
-
578
-
-`TerminatingOrFailed`:表示当 Pod 处于终止中(具有 `metadata.deletionTimestamp`)或失败时,重新创建 Pod。
579
-
-`Failed`:表示在创建替代的 Pod 之前,等待先前创建的 Pod 完全终止(处于 `Failed` 或 `Succeeded` 阶段)。
580
-
581
539
<!--
582
540
When using podFailurePolicy, Failed is the the only allowed value. TerminatingOrFailed and Failed are allowed values when podFailurePolicy is not in use. This is an beta field.
583
541
-->
@@ -1121,6 +1079,10 @@ GET /apis/batch/v1/namespaces/{namespace}/jobs
0 commit comments