kafka-proxy icon indicating copy to clipboard operation
kafka-proxy copied to clipboard

Question: Advertised Address is not advertised back to Client

Open clavinjune opened this issue 9 months ago • 2 comments

I am using Kafka Proxy to proxying 3 nodes of kraft for jaeger collector

here's my configuration:

- --bootstrap-server-mapping=kraft-0.ns.svc.cluster.local:9092,0.0.0.0:30001,foo.com:30001
- --bootstrap-server-mapping=kraft-1.ns.svc.cluster.local:9092,0.0.0.0:30002,foo.com:30002
- --bootstrap-server-mapping=kraft-2.ns.svc.cluster.local:9092,0.0.0.0:30003,foo.com:30003

the kafka producer URL used by my jaeger collector is foo.com:30001,foo.com:30002,foo.com:30003

when the jaeger collector is connected to the proxy, it returns

"dial tcp 0.0.0.0:39081: connect: connection refused"

If I used kcat to check the topic

kcat -b kafka-proxy.ns.svc.cluster.local:30001 -L
Metadata for all topics (from broker -1: kafka-proxy.ns.svc.cluster.local:30001/bootstrap):
 3 brokers:
  broker 0 at 0.0.0.0:46723 (controller)
  broker 1 at 0.0.0.0:39081
  broker 2 at 0.0.0.0:37183

it seems the adv addressed (foo.com) is not advertised back

any wrong configuration that I did? thank you!

clavinjune avatar Mar 21 '25 12:03 clavinjune

cc @everesio I am using the kafkav3.9.5 and the latest kafka-proxy v0.4.1-all

clavinjune avatar Mar 21 '25 12:03 clavinjune

I think you need to add --dynamic-listeners-disable to disable address like 0.0.0.0:39081

I published a blog last night to share my setup. Hope it helps https://www.linkedin.com/pulse/how-set-up-kafka-proxy-gcp-any-cloud-jove-zhong-avy6c

jovezhong avatar May 05 '25 17:05 jovezhong