Skip to content

Commit e9a8da7

Browse files
author
Steven Smith
committed
Adds tolerations annotation to docs
1 parent f85bdb5 commit e9a8da7

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

modules/operator-deploy-infrastructure.adoc

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ The following procedure can also be completed by removing the installed {product
104104

105105
.Procedure
106106

107-
. Enter the following command to edit the namespace where {productname} is deployed, and the following annotation:
107+
. Add the node selector annotation to the namespace by entering the following command:
108108
+
109109
[source,terminal]
110110
----
@@ -118,6 +118,25 @@ Example output
118118
namespace/<namespace> annotated
119119
----
120120

121+
. Add the tolerations annotation to the namespace by entering the following command:
122+
+
123+
[source,terminal]
124+
----
125+
$ oc annotate namespace <namespace> scheduler.alpha.kubernetes.io/defaultTolerations='[\{"operator":"Equal","value":"reserved","effect":"NoSchedule","key":"node-role.kubernetes.io/infra"},\{"operator":"Equal","value":"reserved","effect":"NoExecute","key":"node-role.kubernetes.io/infra"}]' --overwrite
126+
----
127+
+
128+
Example output
129+
+
130+
[source,yaml]
131+
----
132+
namespace/<namespace> annotated
133+
----
134+
+
135+
[IMPORTANT]
136+
====
137+
The tolerations in this example are specific to two taints commonly applied to infra nodes. The taints configured in your environment might differ. You must set the tolerations accordingly to match the taints applied to your infra nodes.
138+
====
139+
121140
. Obtain a list of available pods by entering the following command:
122141
+
123142
[source,terminal]

0 commit comments

Comments
 (0)