Kafka pods not deploying with anti affinity configuration #4928
davehouser1
started this conversation in
General
Replies: 1 comment 1 reply
-
Hmmm, after comparing required to preferred I noticed an indentation difference
When adjusting indentation for preferred, this allowed the pods to deploy properly. |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
Problem:
When trying to deploy pods in a required anti-affinity or preferred anti-affinity configuration, kafka pods dont deploy.
Trouble shooting:
FailedCreate statefulset/my-cluster-kafka create Pod my-cluster-kafka-0 in StatefulSet my-cluster-kafka failed error: Pod "my-cluster-kafka-0" is invalid: spec.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[0].matchExpressions.matchExpressions[0].operator: Invalid value: "": not a valid selector operator
Tried deploying as a "preferredDuringSchedulingIgnoredDuringExecution" configuration. Results: Kubernetes does nothing and shows no events (I assume a misconfiguration). Any recommendations for checking scheduling logs some other way?
Followed instructions outlined here. The instructions give an example for affinity, but not anti-affinity. Also the instructions do not detail how to configure preferred anti affinity, only required anti affinity (they have different syntax) is preferred supported?
Read this blog post, but as other discussions pointed out this post is 3 years old, so I assume its syntax or instructions are not valid?
Read through this on syntax. I am not using openshift, but I believe the syntax is the same for vanilla Kubernetes.
Manifests:
Beta Was this translation helpful? Give feedback.
All reactions