-
Notifications
You must be signed in to change notification settings - Fork 734
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't access Kafka outside of Kubernetes #161
Comments
You need to change the services to LoadBalancer to get an external IP. Node port requires access to the nodes, on port 32400+ as seen in your svc listing. You most likely also need to resolve outside listener names, i.e. FQDNs or IP addresses, in https://github.com/Yolean/kubernetes-kafka/blob/v3.1.0/kafka/10broker-config.yml#L30 based on your hosting situation. I think there are examples for AWS in #13 or #78. |
Nope, sorry. You're actually on your own. No howto can anticipate how you chose to expose these ports, how load balancing works in your cluster and how a shell script on the inside can figure out these external DNS-names or IP-addresses. |
We used external-dns to setup our cluster quickly. You might want to check it out. |
Thanks guys... I will try to do something with this. Hopefully it will work, so I can finally switch from Mesos to Kubernetes. |
@dinoba OUTSIDE_HOST=$(kubectl get node "$NODE_NAME" -o jsonpath='{.status.addresses[?(@.type=="ExternalDNS")].address}') After doing so my external clients worked correctly |
Hi @SamD So in the server.properties of my brokers, i got something like this :: When I'm trying to acces from the outside service with this port, i get TIMED OUT node-1# curl x.x.x.156:32401 gcloudShell# curl x.x.x.156:32401 What's wrong ? Thanks for help. |
@maykiwo I haven't looked at this in a long time and haven't actually been working with k8s for sometime now. What shows in the in kubectl node addresses? Whatever you need should be in there so just substitute the correct type for ExternalDNS in the OUTPUT_HOST set script I specified and it should work. |
@SamD, I'll try it. Thanks for reply. |
I've started Kafka using manifests from /configure, /zookeeper and kafka /kafka directories.
When I run services outside-0 - 3 I don't get any external IP
What am I doing wrong here?
this is my svc listing
The text was updated successfully, but these errors were encountered: