Node affinity rules and pod affinity rules added by defaullt #7159
Unanswered
rakeshpb90
asked this question in
Q&A
Replies: 1 comment
-
Can you share your custom resource? Rules like this are nroamlly added when you configure the rack-awareness and they would you the topology key you configured there. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We have deployed strimizi operator 0.30.0 and kafka 3.2.0 on the EKS cluster. Node affinity rules and pod affinity seem to be added to the Kafka pod by default. Let me know if this is the default behaviour and if I want to change the behaviour, how can i add that? Let's say if I want to change the topology to "topologyKey: "kubernetes.io/hostname".
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: failure-domain.beta.kubernetes.io/zone
operator: Exists
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- podAffinityTerm:
labelSelector:
matchLabels:
strimzi.io/cluster: test-kafka
strimzi.io/name: test-kafka-kafka
topologyKey: failure-domain.beta.kubernetes.io/zone
weight: 100
Beta Was this translation helpful? Give feedback.
All reactions