From b8877904417c29e2047b73602035713307346e46 Mon Sep 17 00:00:00 2001 From: yuli Date: Mon, 9 May 2022 16:13:31 +0800 Subject: [PATCH] [zh]Sync reference-5 [zh]Sync reference-5 [zh]Sync reference-5 --- .../kube-scheduler-config.v1beta3.md | 1143 +++++++++-------- 1 file changed, 631 insertions(+), 512 deletions(-) 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 +
+ +

+ acceptContentTypes 定义的是客户端与服务器建立连接时要发送的 Accept 头部, + 这里的设置值会覆盖默认值 "application/json"。此字段会影响某特定客户端与服务器的所有连接。 +

+
contentType [必需]
+string +
+ +

+ contentType 包含的是此客户端向服务器发送数据时使用的内容类型(Content Type)。 +

+
qps [必需]
+float32 +
+ +

qps 控制此连接允许的每秒查询次数。

+
burst [必需]
+int32 +
+ +

burst 允许在客户端超出其速率限制时可以累积的额外查询个数。

+
+ +## `DebuggingConfiguration` {#DebuggingConfiguration} + + +**出现在:** + +- [KubeSchedulerConfiguration](#kubescheduler-config-k8s-io-v1beta3-KubeSchedulerConfiguration) +- [KubeSchedulerConfiguration](#kubescheduler-config-k8s-io-v1beta2-KubeSchedulerConfiguration) + + +

DebuggingConfiguration 保存与调试功能相关的配置。

+ + + + + + + + + + + + +
字段描述
enableProfiling [必需]
+bool +
+ +

此字段允许通过 Web 接口 host:port/debug/pprof/ 执行性能分析。

+
enableContentionProfiling [必需]
+bool +
+ +

此字段在 enableProfiling 为 true 时允许执行锁竞争分析。

+
+ +## `FormatOptions` {#FormatOptions} + + + + +

FormatOptions 中包含不同日志格式的配置选项。

+ + + + + + + + + +
字段描述
json [必需]
+JSONOptions +
+ +

[实验特性] json 字段包含为 "json" 日志格式提供的配置选项。

+
+ +## `JSONOptions` {#JSONOptions} + + +**出现在:** + +- [FormatOptions](#FormatOptions) + + +

JSONOptions 包含为 "json" 日志格式所设置的配置选项。

+ + + + + + + + + + + + +
字段描述
splitStream [必需]
+bool +
+ +

[实验特性] 此字段将错误信息重定向到标准错误输出(stderr), + 将提示消息重定向到标准输出(stdout),并且支持缓存。 + 默认配置为将二者都输出到标准输出(stdout),且不提供缓存。

+
infoBufferSize [必需]
+k8s.io/apimachinery/pkg/api/resource.QuantityValue +
+ +

+ [实验特性] infoBufferSize 用来在分离数据流场景是设置提示信息数据流的大小。 + 默认值为 0,意味着禁止缓存。 +

+
+ +## `LeaderElectionConfiguration` {#LeaderElectionConfiguration} + + +**出现在:** + +- [KubeSchedulerConfiguration](#kubescheduler-config-k8s-io-v1beta2-KubeSchedulerConfiguration) +- [KubeSchedulerConfiguration](#kubescheduler-config-k8s-io-v1beta3-KubeSchedulerConfiguration) + + +

+LeaderElectionConfiguration 为能够支持领导者选举的组件定义其领导者选举客户端的配置。 +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
字段描述
leaderElect [必需]
+bool +
+ +

+ leaderElect 允许领导者选举客户端在进入主循环执行之前先获得领导者角色。 + 运行多副本组件时启用此功能有助于提高可用性。 +

+
leaseDuration [必需]
+meta/v1.Duration +
+ +

+ leaseDuration 是非领导角色候选者在观察到需要领导席位更新时要等待的时间; + 只有经过所设置时长才可以尝试去获得一个仍处于领导状态但需要被刷新的席位。 + 这里的设置值本质上意味着某个领导者在被另一个候选者替换掉之前可以停止运行的最长时长。 + 只有当启用了领导者选举时此字段有意义。 +

+
renewDeadline [必需]
+meta/v1.Duration +
+ +

+ renewDeadline 设置的是当前领导者在停止扮演领导角色之前需要刷新领导状态的时间间隔。 + 此值必须小于或等于租约期限的长度。只有到启用了领导者选举时此字段才有意义。 +

+
retryPeriod [必需]
+meta/v1.Duration +
+ +

+ retryPeriod 是客户端在连续两次尝试获得或者刷新领导状态之间需要等待的时长。 + 只有当启用了领导者选举时此字段才有意义。 +

+
resourceLock [必需]
+string +
+ +

此字段给出在领导者选举期间要作为锁来使用的资源对象类型。

+
resourceName [必需]
+string +
+ +

此字段给出在领导者选举期间要作为锁来使用的资源对象名称。

+
resourceNamespace [必需]
+string +
+ +

此字段给出在领导者选举期间要作为锁来使用的资源对象所在名字空间。

+
+ +## `LoggingConfiguration` {#LoggingConfiguration} + + +**出现在:** + +- [KubeletConfiguration](#kubelet-config-k8s-io-v1beta1-KubeletConfiguration) + + +

+LoggingConfiguration 包含日志选项。 +参考 [Logs Options](https://github.com/kubernetes/component-base/blob/master/logs/options.go) 以了解更多信息。 +

+ + + + + + + + + + + + + + + + + + + + + +
字段描述
format [必需]
+string +
+ +

format 设置日志消息的结构。默认的格式取值为 text

+
flushFrequency [必需]
+time.Duration +
+ +

对日志进行清洗的最大间隔纳秒数(例如,1s = 1000000000)。 + 如果所选的日志后端在写入日志消息时不提供缓存,则此配置会被忽略。

+
verbosity [必需]
+uint32 +
+ +

verbosity 用来确定日志消息记录的详细程度阈值。 + 默认值为 0,意味着仅记录最重要的消息。 + 数值越大,额外的消息越多。错误消息总是被记录下来。

+
vmodule [必需]
+VModuleConfiguration +
+ +

vmodule 会在单个文件层面重载 verbosity 阈值的设置。 + 这一选项仅支持 "text" 日志格式。

+
options [必需]
+FormatOptions +
+ +

[实验特性] options 中包含特定于不同日志格式的配置参数。 + 只有针对所选格式的选项会被使用,但是合法性检查时会查看所有选项配置。

+
+ +## `VModuleConfiguration` {#VModuleConfiguration} + + + +(`[]k8s.io/component-base/config/v1alpha1.VModuleItem` 的别名) + +**出现在:** + +- [LoggingConfiguration](#LoggingConfiguration) + + +

VModuleConfiguration 是一组文件名(通配符)及其对应的日志详尽程度阈值。

+ ## `DefaultPreemptionArgs` {#kubescheduler-config-k8s-io-v1beta3-DefaultPreemptionArgs} -DefaultPreemptionArgs 包含用来配置 DefaultPreemption 插件的参数。 +

DefaultPreemptionArgs 包含用来配置 DefaultPreemption 插件的参数。

@@ -50,8 +481,8 @@ shortlist when dry running preemption as a percentage of number of nodes. Must be in the range [0, 100]. Defaults to 10% of the cluster size if unspecified. --> - 此字段为试运行抢占时 shortlist 中候选节点数的下限,数值为节点数的百分比。 -字段值必须介于 [0, 100] 之间。未指定时默认值为整个集群规模的 10%。 +

此字段为试运行抢占时 shortlist 中候选节点数的下限,数值为节点数的百分比。 + 字段值必须介于 [0, 100] 之间。未指定时默认值为整个集群规模的 10%。

@@ -82,7 +514,7 @@ that play a role in the number of candidates shortlisted. Must be at least -InterPodAffinityArgs 包含用来配置 InterPodAffinity 插件的参数。 +

InterPodAffinityArgs 包含用来配置 InterPodAffinity 插件的参数。

字段描述
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 中候选节点的绝对下限。 + 用于试运行抢占而列举的候选节点个数近似于通过下面的公式计算的:
+ 候选节点数 = max(节点数 * minCandidateNodesPercentage, minCandidateNodesAbsolute) + 之所以说是"近似于"是因为存在一些类似于 PDB 违例这种因素, + 会影响到进入 shortlist中候选节点的个数。 + 取值至少为 0 节点。若未设置默认为 100 节点。

@@ -99,8 +531,9 @@ InterPodAffinityArgs 包含用来配置 InterPodAffinity 插件的参数。 HardPodAffinityWeight is the scoring weight for existing pods with a matching hard affinity to the incoming pod. --> - 此字段是一个计分权重值。针对新增的 Pod,要对现存的、带有与新 Pod 匹配的 -硬性亲和性设置的 Pods 计算亲和性得分。 +

此字段是一个计分权重值。针对新增的 Pod,要对现存的、 + 带有与新 Pod 匹配的硬性亲和性设置的 Pods 计算亲和性得分。 +

@@ -111,7 +544,7 @@ matching hard affinity to the incoming pod. -KubeSchedulerConfiguration 用来配置调度器。 +

KubeSchedulerConfiguration 用来配置调度器。

字段描述
@@ -127,8 +560,9 @@ KubeSchedulerConfiguration 用来配置调度器。 - 此字段设置为调度 Pod 而执行算法时的并发度。此值必须大于 0。 -默认值为 16。 +

+ 此字段设置为调度 Pod 而执行算法时的并发度。此值必须大于 0。默认值为 16。 +

+ @@ -246,7 +689,7 @@ with the extender. These extenders are shared by all scheduler profiles. -NodeAffinityArgs 中包含配置 NodeAffinity 插件的参数。 +

NodeAffinityArgs 中包含配置 NodeAffinity 插件的参数。

字段描述
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)的列表, + 每个元素包含如何与某扩展模块通信的配置信息。 + 所有调度器模仿会共享此扩展模块列表。

@@ -267,11 +710,12 @@ match). When AddedAffinity is used, some Pods with affinity requirements that match a specific Node (such as Daemonset Pods) might remain unschedulable. --> - addedAffinity 会作为附加的亲和性属性添加到所有 Pod 的 -规约中指定的 NodeAffinity 中。换言之,节点需要同时满足 addedAffinity -和 .spec.nodeAffinity。默认情况下,addedAffinity 为空(与所有节点匹配)。 -使用了 addedAffinity 时,某些带有已经能够与某特定节点匹配的亲和性需求 -的 Pod (例如 DaemonSet Pod)可能会继续呈现不可调度状态。 +

+ addedAffinity 会作为附加的亲和性属性添加到所有 Pod 的规约中指定的 NodeAffinity 中。 + 换言之,节点需要同时满足 addedAffinity 和 .spec.nodeAffinity。 + 默认情况下,addedAffinity 为空(与所有节点匹配)。使用了 addedAffinity 时, + 某些带有已经能够与某特定节点匹配的亲和性需求的 Pod (例如 DaemonSet Pod)可能会继续呈现不可调度状态。 +

@@ -282,7 +726,7 @@ a specific Node (such as Daemonset Pods) might remain unschedulable. -NodeResourcesBalancedAllocationArgs 包含用来配置 NodeResourcesBalancedAllocation 插件的参数。 +

NodeResourcesBalancedAllocationArgs 包含用来配置 NodeResourcesBalancedAllocation 插件的参数。

字段描述
@@ -298,7 +742,7 @@ NodeResourcesBalancedAllocationArgs 包含用来配置 NodeResourcesBalancedAllo - 要管理的资源;如果未设置,则默认值为 "cpu" 和 "memory"。 +

要管理的资源;如果未设置,则默认值为 "cpu" 和 "memory"。

@@ -309,7 +753,7 @@ NodeResourcesBalancedAllocationArgs 包含用来配置 NodeResourcesBalancedAllo -NodeResourcesFitArgs 包含用来配置 NodeResourcesFit 插件的参数。 +

NodeResourcesFitArgs 包含用来配置 NodeResourcesFit 插件的参数。

字段描述
@@ -326,7 +770,7 @@ NodeResourcesFitArgs 包含用来配置 NodeResourcesFit 插件的参数。 IgnoredResources is the list of resources that NodeResources fit filter should ignore. This doesn't apply to scoring. --> - 此字段为 NodeResources 匹配过滤器要忽略的资源列表。此列表不影响节点打分。 +

此字段为 NodeResources 匹配过滤器要忽略的资源列表。此列表不影响节点打分。

@@ -365,7 +810,7 @@ The default strategy is LeastAllocated with an equal "cpu" and "memory" weight. -PodTopologySpreadArgs 包含用来配置 PodTopologySpread 插件的参数。 +

PodTopologySpreadArgs 包含用来配置 PodTopologySpread 插件的参数。

字段描述
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" 的权重相同。

@@ -386,11 +831,10 @@ deduced from the Pod's membership to Services, ReplicationControllers, ReplicaSets or StatefulSets. When not empty, .defaultingType must be "List". --> - 此字段针对未定义 .spec.topologySpreadConstraints 的 Pod, -为其提供拓扑分布约束。.defaultConstraints[∗].labelSelectors -必须为空,因为这一信息要从 Pod 所属的 Service、ReplicationController、 -ReplicaSet 或 StatefulSet 来推导。 -此字段不为空时,.defaultingType 必须为 "List"。 +

此字段针对未定义 .spec.topologySpreadConstraints 的 Pod, + 为其提供拓扑分布约束。.defaultConstraints[∗].labelSelectors必须为空, + 因为这一信息要从 Pod 所属的 Service、ReplicationController、ReplicaSet 或 StatefulSet 来推导。 + 此字段不为空时,.defaultingType 必须为 "List"。

@@ -423,7 +866,7 @@ and to "System" if enabled. -VolumeBindingArgs 包含用来配置 VolumeBinding 插件的参数。 +

VolumeBindingArgs 包含用来配置 VolumeBinding 插件的参数。

字段描述
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". -->

defaultingType 决定如何推导 .defaultConstraints。 -可选值为 "System" 或 "List"。

+ 可选值为 "System" 或 "List"。

    -
  • "System":使用 Kubernetes 定义的约束,将 Pod 分布到不同节点和可用区;
  • -
  • "List":使用 .defaultConstraints 中定义的约束。
  • +
  • "System":使用 Kubernetes 定义的约束,将 Pod 分布到不同节点和可用区;
  • +
  • "List":使用 .defaultConstraints 中定义的约束。
-

当特性门控 DefaultPodTopologySpread 被禁用时,默认值为 "list";反之,默认值为 "System"。

+

默认值为 "System"。

@@ -441,8 +884,8 @@ VolumeBindingArgs 包含用来配置 VolumeBinding 插件的参数。 Value must be non-negative integer. The value zero indicates no waiting. If this value is nil, the default value (600) will be used. --> - 此字段设置卷绑定操作的超时秒数。字段值必须是非负数。 -取值为 0 意味着不等待。如果此值为 null,则使用默认值(600)。 +

此字段设置卷绑定操作的超时秒数。字段值必须是非负数。 + 取值为 0 意味着不等待。如果此值为 null,则使用默认值(600)。

@@ -492,8 +935,8 @@ All points must be sorted in increasing order by utilization. Extender holds the parameters used to communicate with the extender. If a verb is unspecified/empty, it is assumed that the extender chose not to provide that extension. --> -Extender 包含与扩展模块(Extender)通信所用的参数。 -如果未指定 verb 或者 verb 为空,则假定对应的扩展模块选择不提供该扩展功能。 +

Extender 包含与扩展模块(Extender)通信所用的参数。 +如果未指定 verb 或者 verb 为空,则假定对应的扩展模块选择不提供该扩展功能。

字段描述
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. --> -

shape 用来设置打分函数曲线所使用的计分点,这些计分点 -用来基于静态制备的 PV 卷的利用率为节点打分。 -卷的利用率是计算得来的,将 Pod 所请求的总的存储空间大小除以每个节点 -上可用的总的卷容量。每个计分点包含利用率(范围从 0 到 100)和其对应 -的得分(范围从 0 到 10)。你可以通过为不同的使用率值设置不同的得分来 -反转优先级:

+

shape 用来设置打分函数曲线所使用的计分点, + 这些计分点用来基于静态制备的 PV 卷的利用率为节点打分。 + 卷的利用率是计算得来的, + 将 Pod 所请求的总的存储空间大小除以每个节点上可用的总的卷容量。 + 每个计分点包含利用率(范围从 0 到 100)和其对应的得分(范围从 0 到 10)。 + 你可以通过为不同的使用率值设置不同的得分来反转优先级:

默认的曲线计分点为:

-
    +
    1. 利用率为 0 时得分为 0;
    2. 利用率为 100 时得分为 10。
    3. -
+

所有计分点必须按利用率值的升序来排序。

@@ -506,7 +949,7 @@ Extender 包含与扩展模块(Extender)通信所用的参数。 - 用来访问扩展模块的 URL 前缀。 +

用来访问扩展模块的 URL 前缀。

@@ -646,8 +1089,8 @@ prioritize 和 bind (如果扩展模块可以执行绑定操作)阶段被发 Ignorable specifies if the extender is ignorable, i.e. scheduling should not fail when the extender returns an error or is not reachable. --> - 此字段用来设置扩展模块是否是可忽略的。换言之,当扩展模块返回错误或者 -完全不可达时,调度操作不应失败。 +

此字段用来设置扩展模块是否是可忽略的。 + 换言之,当扩展模块返回错误或者完全不可达时,调度操作不应失败。

@@ -666,7 +1109,7 @@ fail when the extender returns an error or is not reachable. ExtenderManagedResource describes the arguments of extended resources managed by an extender. --> -ExtenderManagedResource 描述某扩展模块所管理的扩展资源的参数。 +

ExtenderManagedResource 描述某扩展模块所管理的扩展资源的参数。

字段描述
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.

managedResources 是一个由此扩展模块所管理的扩展资源的列表。

  • 如果某 Pod 请求了此列表中的至少一个扩展资源,则 Pod 会在 filter、 -prioritize 和 bind (如果扩展模块可以执行绑定操作)阶段被发送到该扩展模块。
  • + prioritize 和 bind (如果扩展模块可以执行绑定操作)阶段被发送到该扩展模块。
  • 如果某资源上设置了 ignoredByScheduler 为 true,则 kube-scheduler -会在断言阶段略过对该资源的检查。
  • + 会在断言阶段略过对该资源的检查。
@@ -679,7 +1122,7 @@ ExtenderManagedResource 描述某扩展模块所管理的扩展资源的参数 - 扩展资源的名称。 +

扩展资源的名称。

@@ -708,7 +1151,7 @@ resource when applying predicates. -ExtenderTLSConfig 包含启用与扩展模块间 TLS 传输所需的配置参数。 +

ExtenderTLSConfig 包含启用与扩展模块间 TLS 传输所需的配置参数。

字段描述
ignoredByScheduler [必需]
@@ -690,7 +1133,7 @@ ExtenderManagedResource 描述某扩展模块所管理的扩展资源的参数 IgnoredByScheduler indicates whether kube-scheduler should ignore this resource when applying predicates. --> - 此字段标明 kube-scheduler 是否应在应用断言时忽略此资源。 +

此字段标明 kube-scheduler 是否应在应用断言时忽略此资源。

@@ -721,7 +1164,7 @@ ExtenderTLSConfig 包含启用与扩展模块间 TLS 传输所需的配置参数 - 访问服务器时不需要检查 TLS 证书。此配置仅针对测试用途。 +

访问服务器时不需要检查 TLS 证书。此配置仅针对测试用途。

@@ -819,7 +1263,7 @@ CAData takes precedence over CAFile -KubeSchedulerProfile 是一个调度方案。 +

KubeSchedulerProfile 是一个调度方案。

字段描述
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 为空,则会使用联系 -服务器时所用的主机名。 +

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 字段。 +

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 字段。 +

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 字段。 +

caData 包含 PEM 编码的字节流(通常从某根证书包文件读入)。 + 此字段优先级高于 caFile 字段。

@@ -834,9 +1278,9 @@ KubeSchedulerProfile 是一个调度方案。 if schedulername matches with the pod's "spec.schedulername", then the pod is scheduled with this profile. --> - schedulerName 是与此调度方案相关联的调度器的名称。 -如果 schedulerName 与 Pod 的 spec.schedulerName -匹配,则该 Pod 会使用此方案来调度。 +

schedulerName 是与此调度方案相关联的调度器的名称。 + 如果 schedulerName 与 Pod 的 spec.schedulerName匹配, + 则该 Pod 会使用此方案来调度。

@@ -889,7 +1334,7 @@ for that plugin. -Plugin 指定插件的名称及其权重(如果适用的话)。权重仅用于评分(Score)插件。 +

Plugin 指定插件的名称及其权重(如果适用的话)。权重仅用于评分(Score)插件。

字段描述
plugins [必需]
@@ -854,11 +1298,12 @@ If a QueueSort plugin is specified, the same QueueSort Plugin and PluginConfig must be specified for all profiles. -->

plugins 设置一组应该被启用或禁止的插件。 -被启用的插件是指除了默认插件之外需要被启用的插件。被禁止的插件 -是指需要被禁用的默认插件。

-

如果针对某个扩展点没有设置被启用或被禁止的插件,则使用该扩展点 -的默认插件(如果有的话)。如果设置了 QueueSort 插件,则同一个 QueueSort -插件和 pluginConfig 要被设置到所有调度方案之上。

+ 被启用的插件是指除了默认插件之外需要被启用的插件。 + 被禁止的插件是指需要被禁用的默认插件。

+

如果针对某个扩展点没有设置被启用或被禁止的插件, + 则使用该扩展点的默认插件(如果有的话)。如果设置了 QueueSort 插件, + 则同一个 QueueSort 插件和 pluginConfig 要被设置到所有调度方案之上。 +

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 是为每个插件提供的一组可选的定制插件参数。 -如果忽略了插件的配置参数,则意味着使用该插件的默认配置。 +

pluginConfig 是为每个插件提供的一组可选的定制插件参数。 + 如果忽略了插件的配置参数,则意味着使用该插件的默认配置。

@@ -902,7 +1347,7 @@ Plugin 指定插件的名称及其权重(如果适用的话)。权重仅用 - 插件的名称。 +

插件的名称。

@@ -932,9 +1377,9 @@ PluginConfig specifies arguments that should be passed to a plugin at the time o A plugin that is invoked at multiple extension points is initialized once. Args can have arbitrary structure. It is up to the plugin to process these Args. --> -PluginConfig 给出初始化阶段要传递给插件的参数。 +

PluginConfig 给出初始化阶段要传递给插件的参数。 在多个扩展点被调用的插件仅会被初始化一次。 -参数可以是任意结构。插件负责处理这里所传的参数。 +参数可以是任意结构。插件负责处理这里所传的参数。

字段描述
weight [必需]
@@ -912,7 +1357,7 @@ Plugin 指定插件的名称及其权重(如果适用的话)。权重仅用 - 插件的权重;仅适用于评分(Score)插件。 +

插件的权重;仅适用于评分(Score)插件。

@@ -947,17 +1392,17 @@ PluginConfig 给出初始化阶段要传递给插件的参数。 - name 是所配置的插件的名称。 +

name 是所配置的插件的名称。

@@ -976,8 +1421,8 @@ PluginConfig 给出初始化阶段要传递给插件的参数。 PluginSet specifies enabled and disabled plugins for an extension point. If an array is empty, missing, or nil, default plugins at that extension point will be used. --> -PluginSet 为某扩展点设置要启用或禁用的插件。 -如果数组为空,或者取值为 null,则使用该扩展点的默认插件集合。 +

PluginSet 为某扩展点设置要启用或禁用的插件。 +如果数组为空,或者取值为 null,则使用该扩展点的默认插件集合。

字段描述
args [必需]
-k8s.io/apimachinery/pkg/runtime.RawExtension +k8s.io/apimachinery/pkg/runtime.RawExtension
- args 定义在初始化阶段要传递给插件的参数。参数可以为任意结构。 +

args 定义在初始化阶段要传递给插件的参数。参数可以为任意结构。

@@ -993,9 +1438,9 @@ If the default plugin is also configured in the scheduler config file, the weigh be overridden accordingly. These are called after default plugins and in the same order specified here. --> - enabled 设置在默认插件之外要启用的插件。如果在调度器的配置 -文件中也配置了默认插件,则对应插件的权重会被覆盖。 -此处所设置的插件会在默认插件之后被调用,调用顺序与数组中元素顺序相同。 +

enabled 设置在默认插件之外要启用的插件。 + 如果在调度器的配置文件中也配置了默认插件,则对应插件的权重会被覆盖。 + 此处所设置的插件会在默认插件之后被调用,调用顺序与数组中元素顺序相同。

@@ -1029,12 +1474,12 @@ omitted from the config, then the default set of plugins is used for that extens Enabled plugins are called in the order specified here, after default plugins. If they need to be invoked before default plugins, default plugins must be disabled and re-enabled here in desired order. --> -Plugins 结构中包含多个扩展点。当此结构被设置时,针对特定扩展点所启用 -的所有插件都在这一列表中。 +

Plugins 结构中包含多个扩展点。当此结构被设置时, +针对特定扩展点所启用的所有插件都在这一列表中。 如果配置中不包含某个扩展点,则使用该扩展点的默认插件集合。 被启用的插件的调用顺序与这里指定的顺序相同,都在默认插件之后调用。 -如果它们需要在默认插件之前调用,则需要先行禁止默认插件,之后在这里 -按期望的顺序重新启用。 +如果它们需要在默认插件之前调用,则需要先行禁止默认插件, +之后在这里按期望的顺序重新启用。

字段描述
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 设置要被禁用的默认插件。 -如果需要禁用所有的默认插件,应该提供仅包含一个元素 "∗" 的数组。 +

disabled 设置要被禁用的默认插件。 + 如果需要禁用所有的默认插件,应该提供仅包含一个元素 "∗" 的数组。

@@ -1047,7 +1492,7 @@ Plugins 结构中包含多个扩展点。当此结构被设置时,针对特定 - queueSort 是一个在对调度队列中 Pod 排序时要调用的插件列表。 +

queueSort 是一个在对调度队列中 Pod 排序时要调用的插件列表。

字段描述
preFilter [必需]
@@ -1057,8 +1502,8 @@ Plugins 结构中包含多个扩展点。当此结构被设置时,针对特定 - preFilter 是一个在调度框架中“PreFilter(预过滤)”扩展点上要 -调用的插件列表。 +

preFilter 是一个在调度框架中"PreFilter(预过滤)"扩展点上要 + 调用的插件列表。

filter [必需]
@@ -1068,7 +1513,7 @@ Plugins 结构中包含多个扩展点。当此结构被设置时,针对特定 - filter 是一个在需要过滤掉无法运行 Pod 的节点时被调用的插件列表。 +

filter 是一个在需要过滤掉无法运行 Pod 的节点时被调用的插件列表。

postFilter [必需]
@@ -1078,8 +1523,8 @@ Plugins 结构中包含多个扩展点。当此结构被设置时,针对特定 - postFilter 是一个在过滤阶段结束后会被调用的插件列表; -这里的插件只有在找不到合适的节点来运行 Pod 时才会被调用。 +

postFilter 是一个在过滤阶段结束后会被调用的插件列表; + 这里的插件只有在找不到合适的节点来运行 Pod 时才会被调用。

preScore [必需]
@@ -1089,7 +1534,7 @@ Plugins 结构中包含多个扩展点。当此结构被设置时,针对特定 - preScore 是一个在打分之前要调用的插件列表。 +

preScore 是一个在打分之前要调用的插件列表。

score [必需]
@@ -1099,7 +1544,7 @@ Plugins 结构中包含多个扩展点。当此结构被设置时,针对特定 - score 是一个在对已经通过过滤阶段的节点进行排序时调用的插件的列表。 +

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 的节点已被选定后,需要预留或者释放资源时调用的插件的列表。 +

reserve 是一组在运行 Pod 的节点已被选定后,需要预留或者释放资源时调用的插件的列表。

permit [必需]
@@ -1120,8 +1565,8 @@ after a node is assigned to run the pod. - permit 是一个用来控制 Pod 绑定关系的插件列表。这些插件可以 -禁止或者延迟 Pod 的绑定。 +

permit 是一个用来控制 Pod 绑定关系的插件列表。 + 这些插件可以禁止或者延迟 Pod 的绑定。

preBind [必需]
@@ -1131,7 +1576,7 @@ after a node is assigned to run the pod. - preBind 是一个在 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(绑定)”扩展点上要调用的 -插件的列表。调度器按顺序调用这些插件。只要其中某个插件返回成功,则调度器 -就略过余下的插件。 +

+ bind 是一个在调度框架中"Bind(绑定)"扩展点上要调用的插件的列表。 + 调度器按顺序调用这些插件。只要其中某个插件返回成功,则调度器就略过余下的插件。 +

postBind [必需]
@@ -1154,7 +1600,7 @@ The scheduler call these plugins in order. Scheduler skips the rest of these plu - postBind 是一个在 Pod 已经被成功绑定之后要调用的插件的列表。 +

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 禁用的插件会禁用对应的操作行为。 -通过 multiPoint 所禁止的 "∗" 也是如此,意味着所有默认 -插件都不会被自动注册。 -插件也可以通过各个独立的扩展点来禁用。

+ 通过 multiPoint 启用的插件会自动注册到插件所实现的每个独立的扩展点上。 + 通过 multiPoint 禁用的插件会禁用对应的操作行为。 + 通过 multiPoint 所禁止的 "∗" + 也是如此,意味着所有默认插件都不会被自动注册。 + 插件也可以通过各个独立的扩展点来禁用。

-PodTopologySpreadConstraintsDefaulting 定义如何为 PodTopologySpread 插件 -设置默认的约束。 +

PodTopologySpreadConstraintsDefaulting +定义如何为 PodTopologySpread 插件设置默认的约束。

## `RequestedToCapacityRatioParam` {#kubescheduler-config-k8s-io-v1beta3-RequestedToCapacityRatioParam} @@ -1236,7 +1682,7 @@ PodTopologySpreadConstraintsDefaulting 定义如何为 PodTopologySpread 插件 -RequestedToCapacityRatioParam 结构定义 RequestedToCapacityRatio 的参数。 +

RequestedToCapacityRatioParam 结构定义 RequestedToCapacityRatio 的参数。

@@ -1249,7 +1695,7 @@ RequestedToCapacityRatioParam 结构定义 RequestedToCapacityRatio 的参数。 - shape 是一个定义评分函数曲线的计分点的列表。 +

shape 是一个定义评分函数曲线的计分点的列表。

@@ -1268,7 +1714,7 @@ RequestedToCapacityRatioParam 结构定义 RequestedToCapacityRatio 的参数。 -ResourceSpec 用来代表某个资源。 +

ResourceSpec 用来代表某个资源。

字段描述
@@ -1281,7 +1727,7 @@ ResourceSpec 用来代表某个资源。 - 资源名称。 +

资源名称。

@@ -1309,7 +1755,7 @@ ResourceSpec 用来代表某个资源。 -ScoringStrategy 为节点资源插件定义 ScoringStrategyType。 +

ScoringStrategy 为节点资源插件定义 ScoringStrategyType。

字段描述
weight [必需]
@@ -1291,7 +1737,7 @@ ResourceSpec 用来代表某个资源。 - 资源权重。 +

资源权重。

@@ -1322,7 +1768,7 @@ ScoringStrategy 为节点资源插件定义 ScoringStrategyType。 - type 用来选择要运行的策略。 +

type 用来选择要运行的策略。

@@ -1348,7 +1794,7 @@ Weight defaults to 1 if not specified or explicitly set to 0. - 特定于 RequestedToCapacityRatio 策略的参数。 +

特定于 RequestedToCapacityRatio 策略的参数。

@@ -1370,7 +1816,7 @@ Weight defaults to 1 if not specified or explicitly set to 0. -ScoringStrategyType 是 NodeResourcesFit 插件所使用的的评分策略类型。 +

ScoringStrategyType 是 NodeResourcesFit 插件所使用的的评分策略类型。

## `UtilizationShapePoint` {#kubescheduler-config-k8s-io-v1beta3-UtilizationShapePoint} @@ -1385,7 +1831,7 @@ ScoringStrategyType 是 NodeResourcesFit 插件所使用的的评分策略类型 -UtilizationShapePoint 代表的是优先级函数曲线中的一个评分点。 +

UtilizationShapePoint 代表的是优先级函数曲线中的一个评分点。

字段描述
resources [必需]
@@ -1336,7 +1782,7 @@ Allowed weights go from 1 to 100. Weight defaults to 1 if not specified or explicitly set to 0. -->

resources 设置在评分时要考虑的资源。

-

默认的资源集合包含 "cpu" 和 "memory",且二者权重相同。

+

默认的资源集合包含 "cpu" 和 "memory",且二者权重相同。

权重的取值范围为 1 到 100。

当权重未设置或者显式设置为 0 时,意味着使用默认值 1。

@@ -1398,7 +1844,7 @@ UtilizationShapePoint 代表的是优先级函数曲线中的一个评分点。 - 利用率(x 轴)。合法值为 0 到 100。完全被利用的节点映射到 100。 +

利用率(x 轴)。合法值为 0 到 100。完全被利用的节点映射到 100。

字段描述
score [必需]
@@ -1408,335 +1854,8 @@ UtilizationShapePoint 代表的是优先级函数曲线中的一个评分点。 - 分配给指定利用率的分值(y 轴)。合法值为 0 到 10。 +

分配给指定利用率的分值(y 轴)。合法值为 0 到 10。

- -## `ClientConnectionConfiguration` {#ClientConnectionConfiguration} - - -**出现在:** - -- [KubeSchedulerConfiguration](#kubescheduler-config-k8s-io-v1beta2-KubeSchedulerConfiguration) -- [KubeSchedulerConfiguration](#kubescheduler-config-k8s-io-v1beta3-KubeSchedulerConfiguration) - - -ClientConnectionConfiguration 中包含用来构造一个客户端所需的细节。 - - - - - - - - - - - - - - - - - - - - - -
字段描述
kubeconfig [必需]
-string -
- - 此字段为指向某 KubeConfig 文件的路径。 -
acceptContentTypes [必需]
-string -
- - acceptContentTypes 定义的是客户端与服务器建立连接时要发送的 -Accept 头部;这里的设置值会覆盖默认值 "application/json"。 -此字段会影响某特定客户端与服务器的所有连接。 -
contentType [必需]
-string -
- - contentType 包含的是此客户端向服务器发送数据时使用的 -内容类型(Content Type)。 -
qps [必需]
-float32 -
- - qps 控制的是此连接上每秒可以发送的查询个数。 -
burst [必需]
-int32 -
- - burst 允许在客户端超出其速率限制时可以累积的额外查询个数。 -
- -## `DebuggingConfiguration` {#DebuggingConfiguration} - - -**出现在:** - -- [KubeSchedulerConfiguration](#kubescheduler-config-k8s-io-v1beta3-KubeSchedulerConfiguration) -- [KubeSchedulerConfiguration](#kubescheduler-config-k8s-io-v1beta2-KubeSchedulerConfiguration) - - -DebuggingConfiguration 保存与调试功能相关的配置。 - - - - - - - - - - - - -
字段描述
enableProfiling [必需]
-bool -
- - 此字段允许通过 Web 接口 host:port/debug/pprof/ 执行性能分析。 -
enableContentionProfiling [必需]
-bool -
- - 此字段在 enableProfiling 为 true 时允许执行锁竞争分析。 -
- -## `FormatOptions` {#FormatOptions} - - - - -FormatOptions 中包含不同日志格式的配置选项。 - - - - - - - - - -
字段描述
json [必需]
-JSONOptions -
- - [实验特性] json 字段包含为 "json" 日志格式提供的配置选项。 -
- -## `JSONOptions` {#JSONOptions} - - -**出现在:** - -- [FormatOptions](#FormatOptions) - - -JSONOptions 包含为 "json" 日志格式所设置的配置选项。 - - - - - - - - - - - - -
字段描述
splitStream [必需]
-bool -
- - [实验特性] 此字段将错误信息重定向到标准错误输出(stderr),将提示消息 -重定向到标准输出(stdout),并且支持缓存。默认配置为将二者都输出到 -标准输出(stdout),且不提供缓存。 -
infoBufferSize [必需]
-k8s.io/apimachinery/pkg/api/resource.QuantityValue -
- - [实验特性] infoBufferSize 用来在分离数据流场景是设置提示 -信息数据流的大小。默认值为 0,意味着禁止缓存。 -
- -## `LeaderElectionConfiguration` {#LeaderElectionConfiguration} - - -**出现在:** - -- [KubeSchedulerConfiguration](#kubescheduler-config-k8s-io-v1beta2-KubeSchedulerConfiguration) -- [KubeSchedulerConfiguration](#kubescheduler-config-k8s-io-v1beta3-KubeSchedulerConfiguration) - - -LeaderElectionConfiguration 为能够支持领导者选举的组件定义其领导者选举 -客户端的配置。 - - - - - - - - - - - - - - - - - - - - - - - - - - - -
字段描述
leaderElect [必需]
-bool -
- - leaderElect 启用领导者选举客户端,从而在进入主循环执行之前 -先要获得领导者角色。当运行多副本组件时启用此功能有助于提高可用性。 -
leaseDuration [必需]
-meta/v1.Duration -
- - leaseDuration 是非领导角色候选者在观察到需要领导席位更新时 -要等待的时间;只有经过所设置时长才可以尝试去获得一个仍处于领导状态但需要 -被刷新的席位。这里的设置值本质上意味着某个领导者在被另一个候选者替换掉 -之前可以停止运行的最长时长。只有当启用了领导者选举时此字段有意义。 -
renewDeadline [必需]
-meta/v1.Duration -
- - renewDeadline 设置的是当前领导者在停止扮演领导角色之前 -需要刷新领导状态的时间间隔。此值必须小于或等于租约期限的长度。 -只有到启用了领导者选举时此字段才有意义。 -
retryPeriod [必需]
-meta/v1.Duration -
- - retryPeriod 是客户端在连续两次尝试获得或者刷新领导状态 -之间需要等待的时长。只有当启用了领导者选举时此字段才有意义。 -
resourceLock [必需]
-string -
- - 此字段给出在领导者选举期间要作为锁来使用的资源对象类型。 -
resourceName [必需]
-string -
- - 此字段给出在领导者选举期间要作为锁来使用的资源对象名称。 -
resourceNamespace [必需]
-string -
- - 此字段给出在领导者选举期间要作为锁来使用的资源对象所在名字空间。 -
- -## `VModuleConfiguration` {#VModuleConfiguration} - - - -(`[]k8s.io/component-base/config/v1alpha1.VModuleItem` 的别名) - - -VModuleConfiguration 是一组文件名(通配符)及其对应的日志详尽程度阈值。 -