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
WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it. - ScheduleAnyway tells the scheduler to schedule the pod in any location,
501
+
WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint.
502
+
- DoNotSchedule (default) tells the scheduler not to schedule it.
503
+
- ScheduleAnyway tells the scheduler to schedule the pod in any location,
502
504
but giving higher precedence to topologies that would help reduce the
503
505
skew.
504
506
A constraint is considered "Unsatisfiable" for an incoming pod if and only if every possible node assignment for that pod would violate "MaxSkew" on some topology. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field.
@@ -592,7 +594,7 @@ PodSpec 是对 Pod 的描述。
592
594
593
595
NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector when calculating pod topology spread skew. Options are: - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations. - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations.
594
596
595
-
If this value is nil, the behavior is equivalent to the Honor policy. This is a alpha-level feature enabled by the NodeInclusionPolicyInPodTopologySpread feature flag.
597
+
If this value is nil, the behavior is equivalent to the Honor policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag.
NodeTaintsPolicy indicates how we will treat node taints when calculating pod topology spread skew. Options are: - Honor: nodes without taints, along with tainted nodes for which the incoming pod has a toleration, are included. - Ignore: node taints are ignored. All nodes are included.
612
614
613
-
If this value is nil, the behavior is equivalent to the Ignore policy. This is a alpha-level feature enabled by the NodeInclusionPolicyInPodTopologySpread feature flag.
615
+
If this value is nil, the behavior is equivalent to the Ignore policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag.
A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. Note that this field cannot be set when spec.os.name is windows.
995
+
A list of groups applied to the first process run in each container, in addition to the container's primary GID, the fsGroup (if specified), and group memberships defined in the container image for the uid of the container process. If unspecified, no additional groups are added to any container. Note that group memberships defined in the container image for the uid of the container process are still effective, even if they are not included in this list. Note that this field cannot be set when spec.os.name is windows.
*Patch strategies: retainKeys, merge on key `name`*
1266
+
1267
+
*Map: unique values on key name will be kept during a merge*
1268
+
-->
1269
+
- **resourceClaims** ([]PodResourceClaim)
1270
+
1271
+
**补丁策略:retainKeys,基于键 `name` 合并**
1272
+
1273
+
**映射:键 `name` 的唯一值将在合并过程中保留**
1274
+
1275
+
<!--
1276
+
ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name.
1277
+
1278
+
This is an alpha field and requires enabling the DynamicResourceAllocation feature gate.
1279
+
1280
+
This field is immutable.
1281
+
-->
1282
+
resourceClaims 定义了在允许 Pod 启动之前必须分配和保留哪些 ResourceClaims。
*PodResourceClaim references exactly one ResourceClaim through a ClaimSource. It adds a name to it that uniquely identifies the ResourceClaim inside the Pod. Containers that need access to the ResourceClaim reference it with this name.*
resourceClaimTemplateName 是与此 Pod 位于同一命名空间中的 `ResourceClaimTemplate` 对象的名称。
1342
+
1343
+
<!--
1344
+
The template will be used to create a new ResourceClaim, which will be bound to this pod. When this pod is deleted, the ResourceClaim will also be deleted. The name of the ResourceClaim will be \<pod name>-\<resource name>, where \<resource name> is the PodResourceClaim.Name. Pod validation will reject the pod if the concatenated name is not valid for a ResourceClaim (e.g. too long).
An existing ResourceClaim with that name that is not owned by the pod will not be used for the pod to avoid using an unrelated resource by mistake. Scheduling and pod startup are then blocked until the unrelated ResourceClaim is removed.
1355
+
-->
1356
+
1357
+
不属于此 Pod 但与此名称重名的现有 ResourceClaim 不会被用于此 Pod,
1358
+
以避免错误地使用不相关的资源。Pod 的调度和启动动作会因此而被阻塞,
1359
+
直到不相关的 ResourceClaim 被删除。
1360
+
1361
+
<!--
1362
+
This field is immutable and no changes will be made to the corresponding ResourceClaim by the control plane after creating the ResourceClaim.
*Map: unique values on key name will be kept during a merge*
1372
+
-->
1373
+
- **schedulingGates** ([]PodSchedulingGate)
1374
+
1375
+
**补丁策略:基于 `name` 键合并**
1376
+
1377
+
**映射:键 `name` 的唯一值将在合并过程中保留**
1378
+
1379
+
<!--
1380
+
SchedulingGates is an opaque list of values that if specified will block scheduling the pod. More info: https://git.k8s.io/enhancements/keps/sig-scheduling/3521-pod-scheduling-readiness.
1381
+
1382
+
This is an alpha-level feature enabled by PodSchedulingReadiness feature gate.
*ResourceClaim references one entry in PodSpec.ResourceClaims.*
2026
+
2027
+
- **resources.claims.name** (string), required
2028
+
2029
+
Name must match the name of one entry in pod.spec.resourceClaims of the Pod where this field is used. It makes that resource available inside a container.
*ResourceClaim references one entry in PodSpec.ResourceClaims.*
3476
+
3477
+
- **resources.claims.name** (string), required
3478
+
3479
+
Name must match the name of one entry in pod.spec.resourceClaims of the Pod where this field is used. It makes that resource available inside a container.
@@ -5414,7 +5643,7 @@ PodStatus 表示有关 Pod 状态的信息。状态内容可能会滞后于系
5414
5643
5415
5644
<a name="ContainerState"></a>
5416
5645
*ContainerState holds a possible state of container. Only one of its members may be specified. If none of them is specified, the default one is ContainerStateWaiting.*
@@ -5584,7 +5813,7 @@ PodStatus 表示有关 Pod 状态的信息。状态内容可能会滞后于系
5584
5813
5585
5814
<a name="ContainerState"></a>
5586
5815
*ContainerState holds a possible state of container. Only one of its members may be specified. If none of them is specified, the default one is ContainerStateWaiting.*
0 commit comments