New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding per pod anti-affinity to cluster with rack previously defined fails #2280
Comments
I tried to reproduce it on Minishift 3.11 (Based on Kube 1.11) and on Minikube with Kube 1.11.10. But I failed to reproduce it. It worked fine for me and the resulting affinity on the pods / StatefulSet was fine. From what you are describing it sounds like some issue with the patching process in Kubernetes, but without being able to reproduce it, I have no clue if we can somehow fix it. |
Odd. I was able to reproduce on multiple Kafka clusters. We are running on AWS (via kops) across multiple AZ's. Not familiar with how minishift or minikube deal with implementing a simulated multiple AZ scenario. Not hard to work around in any event. I only discovered it because I had defined racks when I initially setup the clusters but had forgotten to add per pod anti-affinity. |
I do not think the implementation of AZs really matters ... the affinity here really seems to fail at the YAML level not at the implementation level. I'm going to try it on my AWS cluster as well, but that is using newer version of Kubernetes, so I'm not sure how relevant that is. |
FYI: I gave it a try, but that also didn't show any issues. Sorry. |
I will close this since there was no update for more than 10 days. If you have something more feel free to open a new issue, reopen this one or get in touch with us on Slack or mailing list. |
Describe the bug
Adding a per pod anti-affinity stanza to a Kafka cluster spec that already has a rack property defined results in a bad affinity stanza, leading to the kafka brokers not restarting during a rolling restart
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Adding a per pod anti-affinity to an existing kafka cluster where a rack was already defined should correctly add the additional settings.
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: