You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* If you want Operators that work together scheduled on the same host or on hosts located on the same rack
41
41
* If you want Operators dispersed throughout the infrastructure to avoid downtime due to network or hardware issues
42
42
43
-
ifdef::olm[]
43
+
ifdef::oplm[]
44
44
You can control where an Operator pod is installed by adding node affinity, pod affinity, or pod anti-affinity constraints to the Operator's `Subscription` object. Node affinity is a set of rules used by the scheduler to determine where a pod can be placed. Pod affinity enables you to ensure that related pods are scheduled to the same node. Pod anti-affinity allows you to prevent a pod from being scheduled on a node.
45
-
endif::olm[]
45
+
endif::oplm[]
46
46
47
47
ifdef::pod[]
48
48
You can control where an Operator pod is installed by adding a pod affinity or anti-affinity to the Operator's `Subscription` object.
@@ -52,9 +52,9 @@ ifdef::node[]
52
52
You can control where an Operator pod is installed by adding a node affinity constraints to the Operator's `Subscription` object.
53
53
endif::node[]
54
54
55
-
ifdef::olm[]
55
+
ifdef::oplm[]
56
56
The following examples show how to use node affinity or pod anti-affinity to install an instance of the Custom Metrics Autoscaler Operator to a specific node in the cluster:
57
-
endif::olm[]
57
+
endif::oplm[]
58
58
ifdef::node[]
59
59
The following examples show how to use node affinity to install an instance of the Custom Metrics Autoscaler Operator to a specific node in the cluster:
60
60
endif::node[]
@@ -188,7 +188,7 @@ To control the placement of an Operator pod, complete the following steps:
188
188
. Edit the Operator `Subscription` object to add an affinity:
189
189
+
190
190
ifndef::pod[]
191
-
ifdef::olm[]
191
+
ifdef::oplm[]
192
192
[source,yaml]
193
193
----
194
194
apiVersion: operators.coreos.com/v1alpha1
@@ -213,7 +213,7 @@ spec:
213
213
#...
214
214
----
215
215
<1> Add a `nodeAffinity`, `podAffinity`, or `podAntiAffinity`. See the Additional resources section that follows for information about creating the affinity.
0 commit comments