1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 21:46:22 +01:00

OSDOCS-619: Adding content for schedulable master nodes

This commit is contained in:
Andrea Hoffer
2019-09-09 23:35:17 -04:00
committed by openshift-cherrypick-robot
parent fd41f16811
commit ade0cea485
3 changed files with 51 additions and 2 deletions

View File

@@ -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

View File

@@ -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.

View File

@@ -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].