diff --git a/modules/nodes-nodes-working-marking.adoc b/modules/nodes-nodes-working-marking.adoc index 87891e9654..8399da1cb8 100644 --- a/modules/nodes-nodes-working-marking.adoc +++ b/modules/nodes-nodes-working-marking.adoc @@ -3,7 +3,7 @@ // * nodes/nodes-nodes-working.adoc [id="nodes-nodes-working-marking_{context}"] -= Understanding how to marking nodes as unschedulable or schedulable += Understanding how to mark nodes as unschedulable or schedulable By default, healthy nodes with a `Ready` status are marked as schedulable, meaning that new pods are allowed for placement on the diff --git a/modules/nodes-nodes-working-master-schedulable.adoc b/modules/nodes-nodes-working-master-schedulable.adoc new file mode 100644 index 0000000000..d251a2fbe3 --- /dev/null +++ b/modules/nodes-nodes-working-master-schedulable.adoc @@ -0,0 +1,47 @@ +// Module included in the following assemblies: +// +// * nodes/nodes-nodes-working.adoc + +[id="nodes-nodes-working-master-schedulable_{context}"] += Configuring master nodes as schedulable + +As of {product-title} 4.2, you can configure master nodes to be +schedulable, meaning that new Pods are allowed for placement on the master +nodes. By default, master nodes are not schedulable. However, if your cluster +does not contain any worker nodes, then master nodes are marked schedulable by +default. + +You can allow or disallow master nodes to be schedulable by configuring the +`mastersSchedulable` field. + +.Procedure + +. Edit the `schedulers.config.openshift.io` resource. ++ +---- +$ oc edit schedulers.config.openshift.io cluster +---- + +. Configure the `mastersSchedulable` field. ++ +[source,yaml] +---- +apiVersion: config.openshift.io/v1 +kind: Scheduler +metadata: + creationTimestamp: "2019-09-10T03:04:05Z" + generation: 1 + name: cluster + resourceVersion: "433" + selfLink: /apis/config.openshift.io/v1/schedulers/cluster + uid: a636d30a-d377-11e9-88d4-0a60097bee62 +spec: + mastersSchedulable: false <1> + policy: + name: "" +status: {} +---- +<1> Set to `true` to allow master nodes to be schedulable, or `false` to +disallow master nodes to be schedulable. + +. Save the file to apply the changes. diff --git a/nodes/nodes/nodes-nodes-working.adoc b/nodes/nodes/nodes-nodes-working.adoc index 5def31cb0f..5c9862bfad 100644 --- a/nodes/nodes/nodes-nodes-working.adoc +++ b/nodes/nodes/nodes-nodes-working.adoc @@ -21,9 +21,11 @@ include::modules/nodes-nodes-working-updating.adoc[leveloffset=+1] include::modules/nodes-nodes-working-marking.adoc[leveloffset=+1] +include::modules/nodes-nodes-working-master-schedulable.adoc[leveloffset=+1] + include::modules/nodes-nodes-working-deleting.adoc[leveloffset=+1] == Additional resources -For more information on scaling your cluster using a MachineSet, +For more information on scaling your cluster using a MachineSet, see xref:../../machine_management/manually-scaling-machineset.adoc#machineset-manually-scaling-manually-scaling-machineset[Manually scaling a MachineSet].