website/content/v1.14/reference/configuration/kubernetes/kubeschedulerconfig.md
{{< highlight yaml >}} apiVersion: v1alpha1 kind: KubeSchedulerConfig image: registry.k8s.io/kube-scheduler:v1.37.0 # The container image used to run the kube-scheduler component.
config: profiles: - plugins: score: disabled: - name: PodTopologySpread
extraArgs: feature-gates: AllBeta=true {{< /highlight >}}
| Field | Type | Description | Value(s) |
|---|---|---|---|
enabled | bool | By default, kube-scheduler static pod is enabled. | |
| Set to false to disable the kube-scheduler (assuming it runs on other controlplane node). | |||
image | string | The container image used to run the kube-scheduler component. |
The image reference should contain the tag, even if it is pinned by digest. | |
|config |Unstructured |Provide configuration for the kube-scheduler static pod.
There is no need to specify kind and apiVersion fields (they will be set automatically), but the rest of the configuration should be provided as is.
See https://kubernetes.io/docs/reference/scheduling/config/ for the details of the configuration schema. | |
|extraArgs |Args |Extra command line arguments to supply to the kube-scheduler.
It is preferable to use config field to provide configuration overrides. | |
|env |map[string]string |The env field allows for the addition of environment variables for the kube-scheduler. | |
|resources |<a href="#KubeSchedulerConfig.resources">ResourcesConfig</a> |Configure the kube-scheduler resources. | |
ResourcesConfig represents the pod resources.
| Field | Type | Description | Value(s) |
|---|---|---|---|
requests | Unstructured | Requests configures the reserved cpu/memory resources. <details><summary>Show example(s)</summary>resources requests.:{{< highlight yaml >}} | |
| requests: |
cpu: 1
memory: 1Gi
{{< /highlight >}}</details> | |
|limits |Unstructured |Limits configures the maximum cpu/memory limits a pod can use. <details><summary>Show example(s)</summary>resources limits.:{{< highlight yaml >}}
limits:
cpu: 2
memory: 2500Mi
{{< /highlight >}}</details> | |