Skip to content

how Kafka broker can be used without exposing the endpoints/port for each #9855

Answered by scholzj
Subodh-create asked this question in Q&A
Discussion options

You must be logged in to vote

I am using a load balancer with the 'advertisedhost' to connect Kafka with the Ingress.

This does not really make any sense. You either use Ingress or Load Balancers.

Can I use the 'advertisedhost' only for the bootstrap, not for all brokers? Even if I use the 'advertisedhost' for all brokers, it still works fine but need to add all the brokers host in /etc/hosts. . I need the host only for the bootstrap, and that bootstrap should connect internally with brokers so that no need to specify all the brokers in hosts file

No, that is not how Kafka works. You need access to each broker directly.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Subodh-create
Comment options

@scholzj
Comment options

Answer selected by Subodh-create
@Subodh-create
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants