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
An important thing to note here is that the name of the scheduler specified as an
75
-
argument to the scheduler command in the container spec should be unique. This is the name that is matched against the value of the optional `spec.schedulerName` on pods, to determine whether this scheduler is responsible for scheduling a particular pod.
74
+
In the above manifest, you use a [KubeSchedulerConfiguration](/docs/reference/scheduling/config/)
75
+
to customize the behavior of your scheduler implementation. This configuration has been passed to
76
+
the `kube-scheduler` during initialization with the `--config` option. The `my-scheduler-config` ConfigMap stores the configuration file. The Pod of the`my-scheduler` Deployment mounts the `my-scheduler-config` ConfigMap as a volume.
76
77
77
-
Note also that we created a dedicated service account `my-scheduler` and bind the cluster role
78
+
In the aforementioned Scheduler Configuration, your scheduler implementation is represented via
79
+
a [KubeSchedulerProfile](/docs/reference/config-api/kube-scheduler-config.v1beta2/#kubescheduler-config-k8s-io-v1beta2-KubeSchedulerProfile).
80
+
{{< note >}}
81
+
To determine if a scheduler is responsible for scheduling a specific Pod, the `spec.schedulerName` field in a
82
+
PodTemplate or Pod manifest must match the `schedulerName` field of the `KubeSchedulerProfile`.
83
+
All schedulers running in the cluster must have unique names.
84
+
{{< /note >}}
85
+
86
+
Also, note that you create a dedicated service account `my-scheduler` and bind the ClusterRole
78
87
`system:kube-scheduler` to it so that it can acquire the same privileges as `kube-scheduler`.
79
88
80
89
Please see the
81
90
[kube-scheduler documentation](/docs/reference/command-line-tools-reference/kube-scheduler/) for
82
-
detailed description of other command line arguments.
91
+
detailed description of other command line arguments and
92
+
[Scheduler Configuration reference](https://kubernetes.io/docs/reference/config-api/kube-scheduler-config.v1beta2/) for
93
+
detailed description of other customizable `kube-scheduler` configurations.
83
94
84
95
## Run the second scheduler in the cluster
85
96
@@ -110,11 +121,11 @@ pod in this list.
110
121
111
122
To run multiple-scheduler with leader election enabled, you must do the following:
112
123
113
-
First, update the following fields in your YAML file:
124
+
Update the following fields for the KubeSchedulerConfiguration in the `my-scheduler-config` ConfigMap in your YAML file:
0 commit comments