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.
502
-
- DoNotSchedule (default) tells the scheduler not to schedule it.
502
+
- DoNotSchedule (default) tells the scheduler not to schedule it.
503
503
- ScheduleAnyway tells the scheduler to schedule the pod in any location,
504
504
but giving higher precedence to topologies that would help reduce the
505
505
skew.
@@ -788,7 +788,7 @@ PodSpec 是对 Pod 的描述。
788
788
789
789
<a name="PodDNSConfig"></a>
790
790
<!--
791
-
PodDNSConfig defines the DNS parameters of a pod in addition to those generated from DNSPolicy.
791
+
*PodDNSConfig defines the DNS parameters of a pod in addition to those generated from DNSPolicy.*
792
792
-->
793
793
**PodDNSConfig 定义 Pod 的 DNS 参数,这些参数独立于基于 dnsPolicy 生成的参数。**
794
794
@@ -942,13 +942,13 @@ PodSpec 是对 Pod 的描述。
942
942
可选:默认为空。每个字段的默认值见类型描述。
943
943
944
944
<!--
945
-
PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext.
945
+
*PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext.*
此 Pod 中的容器使用的 seccomp 选项。注意,`spec.os.name` 为 "windows" 时不能设置此字段。
1053
1053
1054
1054
<!--
1055
-
SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set.
1055
+
*SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set.*
1056
1056
-->
1057
1057
1058
1058
**SeccompProfile 定义 Pod 或容器的 seccomp 配置文件设置。只能设置一个配置文件源。**
@@ -1099,7 +1099,7 @@ PodSpec 是对 Pod 的描述。
1099
1099
注意,`spec.os.name` 为 "windows" 时不能设置该字段。
1100
1100
1101
1101
<!--
1102
-
SELinuxOptions are the labels to be applied to the container
1102
+
*SELinuxOptions are the labels to be applied to the container*
1103
1103
-->
1104
1104
1105
1105
<a name="SELinuxOptions"></a>
@@ -1151,7 +1151,7 @@ PodSpec 是对 Pod 的描述。
1151
1151
注意,`spec.os.name` 为 "windows" 时不能设置此字段。
1152
1152
1153
1153
<!--
1154
-
Sysctl defines a kernel parameter to be set
1154
+
*Sysctl defines a kernel parameter to be set*
1155
1155
-->
1156
1156
1157
1157
<a name="Sysctl"></a>
@@ -1189,7 +1189,7 @@ PodSpec 是对 Pod 的描述。
1189
1189
注意,`spec.os.name` 为 "linux" 时不能设置该字段。
1190
1190
1191
1191
<!--
1192
-
WindowsSecurityContextOptions contain Windows-specific options and credentials.
1192
+
*WindowsSecurityContextOptions contain Windows-specific options and credentials.*
1193
1193
-->
1194
1194
1195
1195
<a name="WindowsSecurityContextOptions"></a>
@@ -1350,19 +1350,17 @@ PodSpec 是对 Pod 的描述。
1350
1350
是 PodResourceClaim.name。如果串接起来的名称对于 ResourceClaim
1351
1351
无效(例如太长),Pod 的验证机制将拒绝该 Pod。
1352
1352
1353
-
<!--
1354
-
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 被删除。
1353
+
<!--
1354
+
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
+
不属于此 Pod 但与此名称重名的现有 ResourceClaim 不会被用于此 Pod,
1357
+
以避免错误地使用不相关的资源。Pod 的调度和启动动作会因此而被阻塞,
1358
+
直到不相关的 ResourceClaim 被删除。
1360
1359
1361
-
<!--
1362
-
This field is immutable and no changes will be made to the corresponding ResourceClaim by the control plane after creating the ResourceClaim.
*IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.*
The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.
4082
+
The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.
4083
+
4072
4084
4073
4085
<a name="WeightedPodAffinityTerm"></a>
4074
4086
*The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)*
If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.
4179
+
If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.
4168
4180
4169
4181
<a name="PodAffinityTerm"></a>
4170
4182
*Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key <topologyKey> matches that of any node on which a pod of the set of pods is running*
@@ -4579,7 +4591,10 @@ PodStatus 表示有关 Pod 状态的信息。状态内容可能会滞后于系
4579
4591
- `Failed`:Pod 中的所有容器都已终止,并且至少有一个容器因故障而终止。
4580
4592
容器要么以非零状态退出,要么被系统终止。
4581
4593
- `Unknown`:由于某种原因无法获取 Pod 的状态,通常是由于与 Pod 的主机通信时出错。
4582
-
4594
+
4595
+
<!--
4596
+
More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase
*Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.*
0 commit comments