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
* link:https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity[Assigning Pods to Nodes Kubernetes documentation]
30
+
31
+
ifdef::openshift-enterprise[]
32
+
* xref:../nodes/scheduling/nodes-scheduler-pod-affinity.adoc#nodes-scheduler-pod-affinity[Placing pods relative to other pods using affinity and anti-affinity rules]
In the {logging} 5.8 and later versions, the Loki Operator supports setting pod anti-affinity rules to request that pods of the same component are scheduled on different available nodes in the cluster.
10
+
11
+
include::snippets/about-pod-affinity.adoc[]
12
+
13
+
The Operator sets default, preferred `podAntiAffinity` rules for all Loki components, which includes the `compactor`, `distributor`, `gateway`, `indexGateway`, `ingester`, `querier`, `queryFrontend`, and `ruler` components.
14
+
15
+
You can override the preferred `podAntiAffinity` settings for Loki components by configuring required settings in the `requiredDuringSchedulingIgnoredDuringExecution` field:
Copy file name to clipboardExpand all lines: modules/nodes-scheduler-node-affinity-about.adoc
-1Lines changed: 0 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -99,4 +99,3 @@ If you are using node affinity and node selectors in the same pod configuration,
99
99
100
100
* If you specify multiple `matchExpressions` associated with `nodeSelectorTerms`, then the pod can be scheduled onto a node only if all `matchExpressions` are satisfied.
Affinity is a property of pods that controls the nodes on which they prefer to be scheduled. Anti-affinity is a property of pods
12
-
that prevents a pod from being scheduled on a node.
13
-
14
-
In {product-title}_pod affinity_ and _pod anti-affinity_ allow you to constrain which nodes your pod is eligible to be scheduled on based on the key/value labels on other pods.
15
-
16
-
17
-
18
-
// The following include statements pull in the module files that comprise
19
-
// the assembly. Include any combination of concept, procedure, or reference
20
-
// modules required to cover the user story. You can also include other
Affinity is a property of pods that controls the nodes on which they prefer to be scheduled. Anti-affinity is a property of pods
9
+
that prevents a pod from being scheduled on a node.
10
+
11
+
In {product-title}, _pod affinity_ and _pod anti-affinity_ allow you to constrain which nodes your pod is eligible to be scheduled on based on the key-value labels on other pods.
0 commit comments