Skip to content
This repository has been archived by the owner on Feb 8, 2022. It is now read-only.

Is it possible to connect to kafka broker outside of kubernetes? #1

Open
SnuK87 opened this issue May 17, 2019 · 4 comments
Open

Is it possible to connect to kafka broker outside of kubernetes? #1

SnuK87 opened this issue May 17, 2019 · 4 comments

Comments

@SnuK87
Copy link

SnuK87 commented May 17, 2019

First thanks for this helpful tutorial!

I have one question: Is it possible to connect to the kafka broker from the host machine outside of kubernetes?

I'm able to access the kafka-manager via http://192.168.99.105:31510 but when I try to connect to the kafka broker from my application via bootstrap-servers: 192.168.99.105:9092 I only get the error
org.apache.kafka.clients.NetworkClient : [Consumer clientId=consumer-1, groupId=dummyclienttester] Connection to node -1 could not be established. Broker may not be available.

Any help appreciated.

@castocolina
Copy link

You must create services with type NodePort referencing your pods

@bogdartysh
Copy link

hardly enaugh, as in this case the output will be something like "ailed to resolve 'kafka-0.kafka-nodeport.kafka-ca1.svc.cluster.local:9092': Name or service not know' , maybe KAFKA_ADVERTISED_HOST_NAME is needed ?

You must create services with type NodePort referencing your pods

@zzswang
Copy link

zzswang commented Jul 26, 2020

It is a really good example for minikube setup.

any update for connecting from outside?

@yhjhoo
Copy link

yhjhoo commented Oct 6, 2021

You must create services with type NodePort referencing your pods

how to do that?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants