diff --git a/content/zh/docs/reference/config-api/kube-scheduler-config.v1beta3.md b/content/zh/docs/reference/config-api/kube-scheduler-config.v1beta3.md index d20017253f..a886979a82 100644 --- a/content/zh/docs/reference/config-api/kube-scheduler-config.v1beta3.md +++ b/content/zh/docs/reference/config-api/kube-scheduler-config.v1beta3.md @@ -25,13 +25,444 @@ auto_generated: true - [PodTopologySpreadArgs](#kubescheduler-config-k8s-io-v1beta3-PodTopologySpreadArgs) - [VolumeBindingArgs](#kubescheduler-config-k8s-io-v1beta3-VolumeBindingArgs) +## `ClientConnectionConfiguration` {#ClientConnectionConfiguration} + + +**出现在:** + +- [KubeSchedulerConfiguration](#kubescheduler-config-k8s-io-v1beta2-KubeSchedulerConfiguration) +- [KubeSchedulerConfiguration](#kubescheduler-config-k8s-io-v1beta3-KubeSchedulerConfiguration) + + +
ClientConnectionConfiguration 中包含用来构造客户端所需的细节。
+ +| 字段 | 描述 |
|---|---|
kubeconfig [必需]+ string
+ |
+
+
+ 此字段为指向 KubeConfig 文件的路径。 + |
+
acceptContentTypes [必需]+ string
+ |
+
+
+
+ |
+
contentType [必需]+ string
+ |
+
+
+
+ |
+
qps [必需]+ float32
+ |
+
+
+
|
+
burst [必需]+ int32
+ |
+
+
+
|
+
DebuggingConfiguration 保存与调试功能相关的配置。
+ +| 字段 | 描述 |
|---|---|
enableProfiling [必需]+ bool
+ |
+
+
+ 此字段允许通过 Web 接口 host:port/debug/pprof/ 执行性能分析。 + |
+
enableContentionProfiling [必需]+ bool
+ |
+
+
+ 此字段在 |
+
FormatOptions 中包含不同日志格式的配置选项。
+ +| 字段 | 描述 |
|---|---|
json [必需]+ JSONOptions
+ |
+
+
+ [实验特性] |
+
JSONOptions 包含为 "json" 日志格式所设置的配置选项。
+ +| 字段 | 描述 |
|---|---|
splitStream [必需]+ bool
+ |
+
+
+ [实验特性] 此字段将错误信息重定向到标准错误输出(stderr), + 将提示消息重定向到标准输出(stdout),并且支持缓存。 + 默认配置为将二者都输出到标准输出(stdout),且不提供缓存。 + |
+
infoBufferSize [必需]+ k8s.io/apimachinery/pkg/api/resource.QuantityValue
+ |
+
+
+
+ [实验特性] |
+
+LeaderElectionConfiguration 为能够支持领导者选举的组件定义其领导者选举客户端的配置。 +
+ +| 字段 | 描述 |
|---|---|
leaderElect [必需]+ bool
+ |
+
+
+
+ |
+
leaseDuration [必需]+ meta/v1.Duration
+ |
+
+
+
+ |
+
renewDeadline [必需]+ meta/v1.Duration
+ |
+
+
+
+ |
+
retryPeriod [必需]+ meta/v1.Duration
+ |
+
+
+
+ |
+
resourceLock [必需]+ string
+ |
+
+
+ 此字段给出在领导者选举期间要作为锁来使用的资源对象类型。 + |
+
resourceName [必需]+ string
+ |
+
+
+ 此字段给出在领导者选举期间要作为锁来使用的资源对象名称。 + |
+
resourceNamespace [必需]+ string
+ |
+
+
+ 此字段给出在领导者选举期间要作为锁来使用的资源对象所在名字空间。 + |
+
+LoggingConfiguration 包含日志选项。 +参考 [Logs Options](https://github.com/kubernetes/component-base/blob/master/logs/options.go) 以了解更多信息。 +
+ +| 字段 | 描述 |
|---|---|
format [必需]+ string
+ |
+
+
+
|
+
flushFrequency [必需]+ time.Duration
+ |
+
+
+ 对日志进行清洗的最大间隔纳秒数(例如,1s = 1000000000)。 + 如果所选的日志后端在写入日志消息时不提供缓存,则此配置会被忽略。 + |
+
verbosity [必需]+ uint32
+ |
+
+
+
|
+
vmodule [必需]+ VModuleConfiguration
+ |
+
+
+
|
+
options [必需]+ FormatOptions
+ |
+
+
+ [实验特性] |
+
VModuleConfiguration 是一组文件名(通配符)及其对应的日志详尽程度阈值。
+ ## `DefaultPreemptionArgs` {#kubescheduler-config-k8s-io-v1beta3-DefaultPreemptionArgs} -DefaultPreemptionArgs 包含用来配置 DefaultPreemption 插件的参数。 +DefaultPreemptionArgs 包含用来配置 DefaultPreemption 插件的参数。
| 字段 | 描述 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
minCandidateNodesAbsolute [必需]@@ -67,11 +498,12 @@ We say "likely" because there are other factors such as PDB violations that play a role in the number of candidates shortlisted. Must be at least 0 nodes. Defaults to 100 nodes if unspecified. --> - 此字段设置 shortlist 中候选节点的绝对下限。用于试运行抢占而列举的 -候选节点个数近似于通过下面的公式计算的: -候选节点数 = max(节点数 * minCandidateNodesPercentage, minCandidateNodesAbsolute) -之所以说是“近似于”是因为存在一些类似于 PDB 违例这种因素,会影响到进入 shortlist -中候选节点的个数。取值至少为 0 节点。若未设置默认为 100 节点。 + 此字段设置 shortlist 中候选节点的绝对下限。
+ 用于试运行抢占而列举的候选节点个数近似于通过下面的公式计算的: |
| 字段 | 描述 |
|---|
| 字段 | 描述 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
leaderElection [必需]@@ -138,7 +572,7 @@ KubeSchedulerConfiguration 用来配置调度器。 - 此字段用来定义领导者选举客户端的配置。 + 此字段用来定义领导者选举客户端的配置。 |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
clientConnection [必需]@@ -149,18 +583,22 @@ KubeSchedulerConfiguration 用来配置调度器。 ClientConnection specifies the kubeconfig file and client connection settings for the proxy server to use when communicating with the apiserver. --> - 此字段为与 API 服务器通信时使用的代理服务器设置 kubeconfig 文件和客户端 -连接配置。 + 此字段为与 API 服务器通信时使用的代理服务器设置 kubeconfig 文件和客户端连接配置。 |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
DebuggingConfiguration [必需]DebuggingConfiguration
|
+
(DebuggingConfiguration 的成员被内嵌到此类型中)
- 此字段设置与调试相关功能特性的配置。
+ 此字段设置与调试相关功能特性的配置。 + TODO:我们可能想把它做成一个子结构,像调试 component-base/config/v1alpha1.DebuggingConfiguration 一样。 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||
percentageOfNodesToScore [必需]@@ -177,12 +615,14 @@ then scheduler stops finding further feasible nodes once it finds 150 feasible o When the value is 0, default percentage (5%--50% based on the size of the cluster) of the nodes will be scored. --> + 此字段为所有节点的百分比,一旦调度器找到所设置比例的、能够运行 Pod 的节点, -则停止在集群中继续寻找更合适的节点。这一配置有助于提高调度器的性能。调度器 -总会尝试寻找至少 "minFeasibleNodesToFind" 个可行节点,无论此字段的取值如何。 -例如:当集群规模为 500 个节点,而此字段的取值为 30,则调度器在找到 150 个合适 -的节点后会停止继续寻找合适的节点。当此值为 0 时,调度器会使用默认节点数百分比(基于集群规模 -确定的值,在 5% 到 50% 之间)来执行打分操作。 + 则停止在集群中继续寻找更合适的节点。这一配置有助于提高调度器的性能。 + 调度器总会尝试寻找至少 "minFeasibleNodesToFind" 个可行节点,无论此字段的取值如何。 + 例如:当集群规模为 500 个节点,而此字段的取值为 30, + 则调度器在找到 150 个合适的节点后会停止继续寻找合适的节点。当此值为 0 时, + 调度器会使用默认节点数百分比(基于集群规模确定的值,在 5% 到 50% 之间)来执行打分操作。 + |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
podInitialBackoffSeconds [必需]@@ -194,8 +634,8 @@ nodes will be scored. If specified, it must be greater than 0. If this value is null, the default value (1s) will be used. --> - 此字段设置不可调度 Pod 的初始回退秒数。如果设置了此字段,其取值必须大于零。 -若此值为 null,则使用默认值(1s)。 + 此字段设置不可调度 Pod 的初始回退秒数。如果设置了此字段,其取值必须大于零。 + 若此值为 null,则使用默认值(1s)。 |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
podMaxBackoffSeconds [必需]@@ -207,8 +647,9 @@ will be used. If specified, it must be greater than podInitialBackoffSeconds. If this value is null, the default value (10s) will be used. --> - 此字段设置不可调度的 Pod 的最大回退秒数。如果设置了此字段,则其值必须大于 -podInitialBackoffSeconds 字段值。如果此值设置为 null,则使用默认值(10s)。 + 此字段设置不可调度的 Pod 的最大回退秒数。 + 如果设置了此字段,则其值必须大于 podInitialBackoffSeconds 字段值。 + 如果此值设置为 null,则使用默认值(10s)。 |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
profiles [必需]@@ -221,9 +662,10 @@ choose to be scheduled under a particular profile by setting its associated scheduler name. Pods that don't specify any scheduler name are scheduled with the "default-scheduler" profile, if present here. --> - 此字段为 kube-scheduler 所支持的方案(profiles)。Pod 可以通过设置其对应 -的调度器名称来选择使用特定的方案。未指定调度器名称的 Pod 会使用 -“default-scheduler”方案来调度,如果存在的话。 + 此字段为 kube-scheduler 所支持的方案(profiles)。 + Pod 可以通过设置其对应的调度器名称来选择使用特定的方案。 + 未指定调度器名称的 Pod 会使用"default-scheduler"方案来调度,如果存在的话。 + |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
extenders [必需]@@ -234,8 +676,9 @@ with the "default-scheduler" profile, if present here. Extenders are the list of scheduler extenders, each holding the values of how to communicate with the extender. These extenders are shared by all scheduler profiles. --> - 此字段为调度器扩展模块(Extender)的列表,每个元素包含如何与某扩展模块 -通信的配置信息。所有调度器模仿会共享此扩展模块列表。 + 此字段为调度器扩展模块(Extender)的列表, + 每个元素包含如何与某扩展模块通信的配置信息。 + 所有调度器模仿会共享此扩展模块列表。 |
| 字段 | 描述 |
|---|
| 字段 | 描述 |
|---|
| 字段 | 描述 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ignoredResourceGroups [必需]@@ -339,10 +783,11 @@ e.g. if group is ["example.com"], it will ignore all resource names that begin with "example.com", such as "example.com/aaa" and "example.com/bbb". A resource group name can't contain '/'. This doesn't apply to scoring. --> - 此字段定义 NodeResources 匹配过滤器要忽略的资源组列表。 -例如,如果配置值为 ["example.com"],则以 "example.com" 开头的资源名(如 -"example.com/aaa" 和 "example.com/bbb")都会被忽略。 -资源组名称中不可以包含 '/'。此设置不影响节点的打分。 + 此字段定义 NodeResources 匹配过滤器要忽略的资源组列表。 + 例如,如果配置值为 ["example.com"], + 则以 "example.com" 开头的资源名 + (如"example.com/aaa" 和 "example.com/bbb")都会被忽略。 + 资源组名称中不可以包含 '/'。此设置不影响节点的打分。 |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
scoringStrategy [必需]@@ -353,8 +798,8 @@ A resource group name can't contain '/'. This doesn't apply to scoring. ScoringStrategy selects the node resource scoring strategy. The default strategy is LeastAllocated with an equal "cpu" and "memory" weight. --> - 此字段用来选择节点资源打分策略。默认的策略为 LeastAllocated,且 "cpu" 和 -"memory" 的权重相同。 + 此字段用来选择节点资源打分策略。默认的策略为 LeastAllocated, + 且 "cpu" 和 "memory" 的权重相同。 |
| 字段 | 描述 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
defaultingType@@ -403,16 +847,15 @@ of "System" or "List". - "System": Use kubernetes defined constraints that spread Pods among Nodes and Zones. - "List": Use constraints defined in .defaultConstraints. -Defaults to "List" if feature gate DefaultPodTopologySpread is disabled -and to "System" if enabled. +Defaults to "System". -->
当特性门控 DefaultPodTopologySpread 被禁用时,默认值为 "list";反之,默认值为 "System"。 +默认值为 "System"。 |
| 字段 | 描述 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
shape@@ -462,17 +905,17 @@ The default shape points are: 2) 10 for 100 utilization All points must be sorted in increasing order by utilization. --> -
默认的曲线计分点为: -
所有计分点必须按利用率值的升序来排序。 |
| 字段 | 描述 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
filterVerb [必需]@@ -516,8 +959,8 @@ Extender 包含与扩展模块(Extender)通信所用的参数。 - filter 调用所使用的动词,如果不支持过滤操作则为空。 -此动词会在向扩展模块发送 filter 调用时追加到 urlPrefix 后面。 + filter 调用所使用的动词,如果不支持过滤操作则为空。 + 此动词会在向扩展模块发送 filter 调用时追加到 urlPrefix 后面。 |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
preemptVerb [必需]@@ -527,8 +970,8 @@ Extender 包含与扩展模块(Extender)通信所用的参数。 - preempt 调用所使用的动词,如果不支持过滤操作则为空。 -此动词会在向扩展模块发送 preempt 调用时追加到 urlPrefix 后面。 + preempt 调用所使用的动词,如果不支持过滤操作则为空。 + 此动词会在向扩展模块发送 preempt 调用时追加到 urlPrefix 后面。 |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
prioritizeVerb [必需]@@ -538,8 +981,8 @@ Extender 包含与扩展模块(Extender)通信所用的参数。 - prioritize 调用所使用的动词,如果不支持过滤操作则为空。 -此动词会在向扩展模块发送 prioritize 调用时追加到 urlPrefix 后面。 + prioritize 调用所使用的动词,如果不支持过滤操作则为空。 + 此动词会在向扩展模块发送 prioritize 调用时追加到 urlPrefix 后面。 |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
weight [必需]@@ -550,8 +993,8 @@ Extender 包含与扩展模块(Extender)通信所用的参数。 The numeric multiplier for the node scores that the prioritize call generates. The weight should be a positive integer --> - 针对 prioritize 调用所生成的节点分数要使用的数值系数。 -weight 值必须是正整数。 + 针对 prioritize 调用所生成的节点分数要使用的数值系数。 + weight 值必须是正整数。 |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
bindVerb [必需]@@ -563,10 +1006,10 @@ weight 值必须是正整数。 If this method is implemented by the extender, it is the extender's responsibility to bind the pod to apiserver. Only one extender can implement this function. --> - bind 调用所使用的动词,如果不支持过滤操作则为空。 -此动词会在向扩展模块发送 bind 调用时追加到 urlPrefix 后面。 -如果扩展模块实现了此方法,扩展模块要负责将 Pod 绑定到 API 服务器。 -只有一个扩展模块可以实现此函数。 + bind 调用所使用的动词,如果不支持过滤操作则为空。 + 此动词会在向扩展模块发送 bind 调用时追加到 urlPrefix 后面。 + 如果扩展模块实现了此方法,扩展模块要负责将 Pod 绑定到 API 服务器。 + 只有一个扩展模块可以实现此函数。 |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
enableHTTPS [必需]@@ -576,7 +1019,7 @@ can implement this function. - 此字段设置是否需要使用 HTTPS 来与扩展模块通信。 + 此字段设置是否需要使用 HTTPS 来与扩展模块通信。 |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
tlsConfig [必需]@@ -586,20 +1029,20 @@ can implement this function. - 此字段设置传输层安全性(TLS)配置。 + 此字段设置传输层安全性(TLS)配置。 |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
httpTimeout [必需]- meta/v1.Duration
+meta/v1.Duration
|
- 此字段给出扩展模块功能调用的超时值。filter 操作超时会导致 Pod 无法被调度。
-prioritize 操作超时会被忽略,Kubernetes 或者其他扩展模块所给出的优先级值
-会被用来选择节点。
+ 此字段给出扩展模块功能调用的超时值。filter 操作超时会导致 Pod 无法被调度。 + prioritize 操作超时会被忽略, + Kubernetes 或者其他扩展模块所给出的优先级值会被用来选择节点。 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||
nodeCacheCapable [必需]@@ -611,8 +1054,8 @@ prioritize 操作超时会被忽略,Kubernetes 或者其他扩展模块所给 so the scheduler should only send minimal information about the eligible nodes assuming that the extender already cached full details of all nodes in the cluster --> - 此字段指示扩展模块可以缓存节点信息,从而调度器应该发送关于可选节点的最少信息, -假定扩展模块已经缓存了集群中所有节点的全部详细信息。 + 此字段指示扩展模块可以缓存节点信息,从而调度器应该发送关于可选节点的最少信息, + 假定扩展模块已经缓存了集群中所有节点的全部详细信息。 |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
managedResources@@ -632,9 +1075,9 @@ this extender.
|
| 字段 | 描述 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ignoredByScheduler [必需]@@ -690,7 +1133,7 @@ ExtenderManagedResource 描述某扩展模块所管理的扩展资源的参数 IgnoredByScheduler indicates whether kube-scheduler should ignore this resource when applying predicates. --> - 此字段标明 kube-scheduler 是否应在应用断言时忽略此资源。 + 此字段标明 kube-scheduler 是否应在应用断言时忽略此资源。 |
| 字段 | 描述 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
serverName [必需]@@ -733,9 +1176,10 @@ ExtenderTLSConfig 包含启用与扩展模块间 TLS 传输所需的配置参数 certificates against. If ServerName is empty, the hostname used to contact the server is used. --> - serverName 会被发送到服务器端,作为 SNI 标志;客户端会使用
-此设置来检查服务器证书。如果 serverName 为空,则会使用联系
-服务器时所用的主机名。
+
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
certFile [必需]@@ -745,7 +1189,7 @@ server is used. - 服务器端所要求的 TLS 客户端证书认证。 + 服务器端所要求的 TLS 客户端证书认证。 |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
keyFile [必需]@@ -755,7 +1199,7 @@ server is used. - 服务器端所要求的 TLS 客户端秘钥认证。 + 服务器端所要求的 TLS 客户端秘钥认证。 |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
caFile [必需]@@ -765,7 +1209,7 @@ server is used. - 服务器端被信任的根证书。 + 服务器端被信任的根证书。 |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
certData [必需]@@ -776,8 +1220,8 @@ server is used. CertData holds PEM-encoded bytes (typically read from a client certificate file). CertData takes precedence over CertFile --> - certData 包含 PEM 编码的字节流(通常从某客户端证书文件读入)。
-此字段优先级高于 certFile 字段。
+
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
keyData [必需]@@ -788,8 +1232,8 @@ CertData takes precedence over CertFile KeyData holds PEM-encoded bytes (typically read from a client certificate key file). KeyData takes precedence over KeyFile --> - keyData 包含 PEM 编码的字节流(通常从某客户端证书秘钥文件读入)。
-此字段优先级高于 keyFile 字段。
+
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
caData [必需]@@ -800,8 +1244,8 @@ KeyData takes precedence over KeyFile CAData holds PEM-encoded bytes (typically read from a root certificates bundle). CAData takes precedence over CAFile --> - caData 包含 PEM 编码的字节流(通常从某根证书包文件读入)。
-此字段优先级高于 caFile 字段。
+
|
| 字段 | 描述 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
plugins [必需]@@ -854,11 +1298,12 @@ If a QueueSort plugin is specified, the same QueueSort Plugin and PluginConfig must be specified for all profiles. -->
如果针对某个扩展点没有设置被启用或被禁止的插件,则使用该扩展点
-的默认插件(如果有的话)。如果设置了 QueueSort 插件,则同一个 QueueSort
-插件和 如果针对某个扩展点没有设置被启用或被禁止的插件,
+ 则使用该扩展点的默认插件(如果有的话)。如果设置了 QueueSort 插件,
+ 则同一个 QueueSort 插件和 |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
pluginConfig [必需]@@ -870,8 +1315,8 @@ PluginConfig must be specified for all profiles. Omitting config args for a plugin is equivalent to using the default config for that plugin. --> - pluginConfig 是为每个插件提供的一组可选的定制插件参数。
-如果忽略了插件的配置参数,则意味着使用该插件的默认配置。
+
|
| 字段 | 描述 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
weight [必需]@@ -912,7 +1357,7 @@ Plugin 指定插件的名称及其权重(如果适用的话)。权重仅用 - 插件的权重;仅适用于评分(Score)插件。 + 插件的权重;仅适用于评分(Score)插件。 |
| 字段 | 描述 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
args [必需]- k8s.io/apimachinery/pkg/runtime.RawExtension
+k8s.io/apimachinery/pkg/runtime.RawExtension
|
- args 定义在初始化阶段要传递给插件的参数。参数可以为任意结构。
+
|
| 字段 | 描述 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
disabled [必需]@@ -1006,8 +1451,8 @@ These are called after default plugins and in the same order specified here. Disabled specifies default plugins that should be disabled. When all default plugins need to be disabled, an array containing only one "∗" should be provided. --> - disabled 设置要被禁用的默认插件。
-如果需要禁用所有的默认插件,应该提供仅包含一个元素 "∗" 的数组。
+
|
| 字段 | 描述 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
preFilter [必需]@@ -1057,8 +1502,8 @@ Plugins 结构中包含多个扩展点。当此结构被设置时,针对特定 - preFilter 是一个在调度框架中“PreFilter(预过滤)”扩展点上要
-调用的插件列表。
+
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
filter [必需]@@ -1068,7 +1513,7 @@ Plugins 结构中包含多个扩展点。当此结构被设置时,针对特定 - filter 是一个在需要过滤掉无法运行 Pod 的节点时被调用的插件列表。
+
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
postFilter [必需]@@ -1078,8 +1523,8 @@ Plugins 结构中包含多个扩展点。当此结构被设置时,针对特定 - postFilter 是一个在过滤阶段结束后会被调用的插件列表;
-这里的插件只有在找不到合适的节点来运行 Pod 时才会被调用。
+
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
preScore [必需]@@ -1089,7 +1534,7 @@ Plugins 结构中包含多个扩展点。当此结构被设置时,针对特定 - preScore 是一个在打分之前要调用的插件列表。
+
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
score [必需]@@ -1099,7 +1544,7 @@ Plugins 结构中包含多个扩展点。当此结构被设置时,针对特定 - score 是一个在对已经通过过滤阶段的节点进行排序时调用的插件的列表。
+
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
reserve [必需]@@ -1110,7 +1555,7 @@ Plugins 结构中包含多个扩展点。当此结构被设置时,针对特定 Reserve is a list of plugins invoked when reserving/unreserving resources after a node is assigned to run the pod. --> - reserve 是一组在运行 Pod 的节点已被选定后,需要预留或者释放资源时调用的插件的列表。
+
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
permit [必需]@@ -1120,8 +1565,8 @@ after a node is assigned to run the pod. - permit 是一个用来控制 Pod 绑定关系的插件列表。这些插件可以
-禁止或者延迟 Pod 的绑定。
+
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
preBind [必需]@@ -1131,7 +1576,7 @@ after a node is assigned to run the pod. - preBind 是一个在 Pod 被绑定到某节点之前要被调用的插件的列表。
+
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
bind [必需]@@ -1142,9 +1587,10 @@ after a node is assigned to run the pod. Bind is a list of plugins that should be invoked at "Bind" extension point of the scheduling framework. The scheduler call these plugins in order. Scheduler skips the rest of these plugins as soon as one returns success. --> - bind 是一个在调度框架中“Bind(绑定)”扩展点上要调用的
-插件的列表。调度器按顺序调用这些插件。只要其中某个插件返回成功,则调度器
-就略过余下的插件。
+
+ |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
postBind [必需]@@ -1154,7 +1600,7 @@ The scheduler call these plugins in order. Scheduler skips the rest of these plu - postBind 是一个在 Pod 已经被成功绑定之后要调用的插件的列表。
+
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
multiPoint [必需]@@ -1169,11 +1615,11 @@ The same is true for disabling "∗" through MultiPoint (no default plugins Plugins can still be disabled through their individual extension points. -->
multiPoint 启用的插件会自动注册到插件所实现的每个独立的扩展点上。
+ 通过 multiPoint 禁用的插件会禁用对应的操作行为。
+ 通过 multiPoint 所禁止的 "∗"
+ 也是如此,意味着所有默认插件都不会被自动注册。
+ 插件也可以通过各个独立的扩展点来禁用。
-PodTopologySpreadConstraintsDefaulting 定义如何为 PodTopologySpread 插件
-设置默认的约束。
+PodTopologySpreadConstraintsDefaulting +定义如何为 PodTopologySpread 插件设置默认的约束。 ## `RequestedToCapacityRatioParam` {#kubescheduler-config-k8s-io-v1beta3-RequestedToCapacityRatioParam} @@ -1236,7 +1682,7 @@ PodTopologySpreadConstraintsDefaulting 定义如何为 PodTopologySpread 插件 -RequestedToCapacityRatioParam 结构定义 RequestedToCapacityRatio 的参数。 +RequestedToCapacityRatioParam 结构定义 RequestedToCapacityRatio 的参数。
|