|
| 1 | +// Module included in the following assemblies: |
| 2 | +// |
| 3 | +// * nodes/scheduling/secondary_scheduler/nodes-secondary-scheduler-configuring.adoc |
| 4 | + |
| 5 | +:_content-type: PROCEDURE |
| 6 | +[id="nodes-secondary-scheduler-configuring-console_{context}"] |
| 7 | += Deploying a secondary scheduler |
| 8 | + |
| 9 | +After you have installed the {secondary-scheduler-operator}, you can deploy a secondary scheduler. |
| 10 | + |
| 11 | +.Prerequisities |
| 12 | + |
| 13 | +* You have access to the cluster with `cluster-admin` privileges. |
| 14 | +* You have access to the {product-title} web console. |
| 15 | +* The {secondary-scheduler-operator-full} is installed. |
| 16 | +
|
| 17 | +.Procedure |
| 18 | + |
| 19 | +. Log in to the {product-title} web console. |
| 20 | +. Create config map to hold the configuration for the secondary scheduler. |
| 21 | +.. Navigate to *Workloads* -> *ConfigMaps*. |
| 22 | +.. Click *Create ConfigMap*. |
| 23 | +.. In the YAML editor, enter the config map definition that contains the necessary `KubeSchedulerConfiguration` configuration. For example: |
| 24 | ++ |
| 25 | +[source,yaml] |
| 26 | +---- |
| 27 | +apiVersion: v1 |
| 28 | +kind: ConfigMap |
| 29 | +metadata: |
| 30 | + name: "secondary-scheduler-config" <1> |
| 31 | + namespace: "openshift-secondary-scheduler-operator" <2> |
| 32 | +data: |
| 33 | + "config.yaml": | |
| 34 | + apiVersion: kubescheduler.config.k8s.io/v1beta3 |
| 35 | + kind: KubeSchedulerConfiguration <3> |
| 36 | + leaderElection: |
| 37 | + leaderElect: false |
| 38 | + profiles: |
| 39 | + - schedulerName: secondary-scheduler <4> |
| 40 | + plugins: <5> |
| 41 | + score: |
| 42 | + disabled: |
| 43 | + - name: NodeResourcesBalancedAllocation |
| 44 | + - name: NodeResourcesLeastAllocated |
| 45 | +---- |
| 46 | +<1> The name of the config map. This is used in the *Scheduler Config* field when creating the `SecondaryScheduler` CR. |
| 47 | +<2> The config map must be created in the `openshift-secondary-scheduler-operator` namespace. |
| 48 | +<3> The `KubeSchedulerConfiguration` resource for the secondary scheduler. For more information, see link:https://kubernetes.io/docs/reference/config-api/kube-scheduler-config.v1beta3/#kubescheduler-config-k8s-io-v1beta3-KubeSchedulerConfiguration[`KubeSchedulerConfiguration`] in the Kubernetes API documentation. |
| 49 | +<4> The name of the secondary scheduler. Pods that set their `spec.schedulerName` field to this value are scheduled with this secondary scheduler. |
| 50 | +<5> The plug-ins to enable or disable for the secondary scheduler. For a list default scheduling plug-ins, see link:https://kubernetes.io/docs/reference/scheduling/config/#scheduling-plugins[Scheduling plugins] in the Kubernetes documentation. |
| 51 | + |
| 52 | +.. Click *Create*. |
| 53 | + |
| 54 | +. Create the `SecondaryScheduler` CR: |
| 55 | +.. Navigate to *Operators* -> *Installed Operators*. |
| 56 | +.. Select *{secondary-scheduler-operator-full}*. |
| 57 | +.. Select the *Secondary Scheduler* tab and click *Create SecondaryScheduler*. |
| 58 | +.. The *Name* field defaults to `cluster`; do not change this name. |
| 59 | +.. The *Scheduler Config* field defaults to `secondary-scheduler-config`. Ensure that this value matches the name of the config map created earlier in this procedure. |
| 60 | +.. In the *Scheduler Image* field, enter the image name for your custom scheduler. |
| 61 | ++ |
| 62 | +[IMPORTANT] |
| 63 | +==== |
| 64 | +Red Hat does not directly support the functionality of your custom secondary scheduler. |
| 65 | +==== |
| 66 | + |
| 67 | +.. Click *Create*. |
0 commit comments