-
We have recently noticed that the broker IDs that are specified in the listeners of nodeport type do not match. Not sure if this expected behavior with nodeport type or possibly a bug? This has been seen with Strimzi version 0.30/Kafka3.1.1 (as well as 0.19.0) For e.g. if we have 3 listeners configured like so
We have noticed We expected the above brokers list to be observed. Note that we have many Kafka clusters all on the same k8s cluster and clients appear to be connecting sometimes to "wrong" brokers when using just using nodeport IPs/Ports. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I'm afraid your expectation is wrong in this case. This has nothing to do with the scheduling of the pods. This simply overrides the hostnames the broker advertises to the clients - so all it affects is the broker configuration and nothing more. What exactly are you trying to achieve? If you want to make sure the brokers are advertising the node they run on, just remove the |
Beta Was this translation helpful? Give feedback.
I'm afraid your expectation is wrong in this case. This has nothing to do with the scheduling of the pods. This simply overrides the hostnames the broker advertises to the clients - so all it affects is the broker configuration and nothing more.
What exactly are you trying to achieve? If you want to make sure the brokers are advertising the node they run on, just remove the
advertisedHost
fields from your config and the operator will automatically make sure it advertises the node address.