apache kafka – What is the proper way for a service to send events to multiple knative brokers?

I have a service that I want to post events to multiple brokers, [one in a different namespace]. The issue is that even though I have set up multiple Sinkbinding, K_SINK is being injected in the service pod with only one broker endpoint instead of two. Am I missing something or is there better way of posting events to multiple brokers, besides hardcoding the Knative Broker Ingress URL and dynamically create the full URL in code based upon the broker name and namespace?

Ultimately, I just want to post to different Kafka topics.

Read more here: Source link