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
Specifies the required Pod condition status. To match a pod condition it is required that the specified status equals the pod condition status. Defaults to True.
Specifies the required Pod condition status. To match a pod condition it is required that the specified status equals the pod condition status. Defaults to True.
指定必需的 Pod 状况状态。要匹配一个 Pod 状况,指定的状态必须等于该 Pod 状况状态。默认为 True。
459
+
458
460
-**successPolicy** (SuccessPolicy)
459
461
<!--
460
462
successPolicy specifies the policy when the Job can be declared as succeeded. If empty, the default behavior applies - the Job is declared as succeeded only when the number of succeeded pods equals to the completions. When the field is specified, it must be immutable and works only for the Indexed Jobs. Once the Job meets the SuccessPolicy, the lingering pods are terminated.
@@ -476,7 +478,7 @@ JobSpec 描述了任务执行的情况。
476
478
rules represents the list of alternative rules for the declaring the Jobs as successful before `.status.succeeded >= .spec.completions`. Once any of the rules are met, the "SuccessCriteriaMet" condition is added, and the lingering pods are removed. The terminal state for such a Job has the "Complete" condition. Additionally, these rules are evaluated in order; Once the Job meets one of the rules, other rules are ignored. At most 20 elements are allowed.
477
479
-->
478
480
479
-
**successPolicy 描述何时可以根据某些索引的成功将任务声明为成功。**
481
+
**`successPolicy` 描述何时可以根据某些索引的成功将任务声明为成功。**
480
482
481
483
**successPolicy.rules** ([]SuccessPolicyRule),必需
482
484
@@ -492,7 +494,8 @@ JobSpec 描述了任务执行的情况。
492
494
*SuccessPolicyRule describes rule for declaring a Job as succeeded. Each rule must have at least one of the "succeededIndexes" or "succeededCount" specified.*
启用后,各索引的失败次数将保存在 Pod 的 `batch.kubernetes.io/job-index-failure-count` 注解中。
535
-
仅当 Job 的 `completionMode=Indexed` 且 Pod 的重启策略为 Never 时才能设置此字段。
538
+
仅当 Job 的 `completionMode=Indexed` 且 Pod 的重启策略为 `Never` 时才能设置此字段。
536
539
此字段是不可变更的。
537
540
538
541
-**managedBy** (string)
539
542
540
543
<!--
541
544
ManagedBy field indicates the controller that manages a Job. The k8s Job controller reconciles jobs which don't have this field at all or the field value is the reserved string `kubernetes.io/job-controller`, but skips reconciling Jobs with a custom value for this field. The value must be a valid domain-prefixed path (e.g. acme.io/foo) - all characters before the first "/" must be a valid subdomain as defined by RFC 1123. All characters trailing the first "/" must be valid HTTP Path characters as defined by RFC 3986. The value cannot exceed 63 characters. This field is immutable.
542
-
543
-
This field is beta-level. The job controller accepts setting the field when the feature gate JobManagedBy is enabled (enabled by default).
-`TerminatingOrFailed`:表示当 Pod 处于终止中(具有 `metadata.deletionTimestamp`)或失败时,重新创建 Pod。
580
-
-`Failed`:表示在创建替代的 Pod 之前,等待先前创建的 Pod 完全终止(处于 Failed 或 Succeeded 阶段)。
579
+
-`Failed`:表示在创建替代的 Pod 之前,等待先前创建的 Pod 完全终止(处于 `Failed` 或 `Succeeded` 阶段)。
581
580
582
581
<!--
583
582
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.
未处于终止进程中(未设置 `deletionTimestamp`)的待处理和正在运行的 Pod 数量。对于已完成的 Job,该值为零。
650
+
未处于终止进程中(未设置 `deletionTimestamp`)的待处理和正在运行的 Pod 数量。
651
+
对于已完成的 Job,该值为零。
650
652
651
653
-**failed** (int32)
652
654
@@ -656,14 +658,15 @@ JobStatus 表示 Job 的当前状态。
656
658
657
659
进入 Succeeded 阶段的 Pod 数量。对于给定的规范,该值会单调增加。
658
660
但是,由于弹性索引任务的缩减,该值可能会减少。
661
+
659
662
<!--
660
663
- **completedIndexes** (string)
661
664
662
665
completedIndexes holds the completed indexes when .spec.completionMode = "Indexed" in a text format. The indexes are represented as decimal integers separated by commas. The numbers are listed in increasing order. Three or more consecutive numbers are compressed and represented by the first and last element of the series, separated by a hyphen. For example, if the completed indexes are 1, 3, 4, 5 and 7, they are represented as "1,3-5,7".
663
666
-->
664
667
-**completedIndexes** (string)
665
668
666
-
completedIndexes 以文本格式保存 `.spec.completionMode` 设置为 `"Indexed"` 的 Pod 已完成的索引。
669
+
`completedIndexes` 以文本格式保存 `.spec.completionMode` 设置为 `"Indexed"` 的 Pod 已完成的索引。
0 commit comments