anti-affinity with hard scheduling (required doesn't seem to be working) #5750
Unanswered
elmehdisaniss
asked this question in
Q&A
Replies: 2 comments 7 replies
-
You probably configured it wrong? I'm afraid without you sharing the configuration you used etc., there is not much more one can say. |
Beta Was this translation helpful? Give feedback.
7 replies
-
I think the problem might have been the topologyKey topology.kubernetes.io/hostname. My nodes did not have the label topology.kubernetes.io/hostname, but they had the label kubernetes.io/hostname so when I did set topologyKey to kubernetes.io/hostname it worked for me. |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Strimzi team,
I'm using the 0.25.0 of the strimzi operator with its 0.25.0 helm chart. I deployed the kafka/zookeeper clusters with 3 instances for each using the anti-affinity configuration presented in 0.25.0 documentation in an eks cluster that has enough nodes (8 nodes) so the test wasn't relevant. So I used my 1 node minikube cluster so that minikube deploys only one instance and report the other ones as not able to be deployed due to the anti-affinity rule that is not satisfied (1node) but it was not the case. Minikube deployed all instances. I tried this test with the postgres operator and minikube couldn't schedule due to the non existence of other nodes to schedule pods on.
It is the same configuration for the values.yaml file :
And as we are using helm charts this is what is in the template file of the kafka resource :
Do you see this as an issue or do you have any explanation please ?
Best regards,
Beta Was this translation helpful? Give feedback.
All reactions