From b8b6ff197d79e70b3930a49c06a716a36dd4c060 Mon Sep 17 00:00:00 2001 From: Andrea Hoffer Date: Tue, 28 Sep 2021 11:13:31 -0400 Subject: [PATCH] BZ-2004834: Updating recommendation and example for default node selector --- modules/creating-an-infra-node.adoc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/creating-an-infra-node.adoc b/modules/creating-an-infra-node.adoc index 2e4e7ec1ae..58be6f2389 100644 --- a/modules/creating-an-infra-node.adoc +++ b/modules/creating-an-infra-node.adoc @@ -41,7 +41,7 @@ $ oc get nodes ==== If the default node selector key conflicts with the key of a pod's label, then the default node selector is not applied. -However, do not set a default node selector that might cause a pod to become unschedulable. For example, setting the default node selector to a specific node role, such as `node-role.kubernetes.io/infra=""`, when a pod's label is set to a different node role, such as `node-role.kubernetes.io/master=""`, can cause the pod to become unschedulable. For this reason, it is not recommended to set the default node selector to specific node roles. +However, do not set a default node selector that might cause a pod to become unschedulable. For example, setting the default node selector to a specific node role, such as `node-role.kubernetes.io/infra=""`, when a pod's label is set to a different node role, such as `node-role.kubernetes.io/master=""`, can cause the pod to become unschedulable. For this reason, use caution when setting the default node selector to specific node roles. You can alternatively use a project node selector to avoid cluster-wide node selector key conflicts. ==== @@ -63,10 +63,10 @@ metadata: name: cluster ... spec: - defaultNodeSelector: node-role.kubernetes.io/app= <1> + defaultNodeSelector: topology.kubernetes.io/zone=us-east-1 <1> ... ---- -<1> This example node selector deploys pods on app nodes by default. +<1> This example node selector deploys pods on nodes in the `us-east-1` zone by default. .. Save the file to apply the changes.