[inclubator/kafka] Accessing Kafka outside kubernetes not working #6670
Comments
Hi @vidhy I believe you must also specify configurationOverrides.advertised.listeners. Guessing for your example it would be this...
Noticed from looking at the statefulset template. |
@drekle I dont think that fixes the issue. These are the properties I have inside the pod.
When i do I am getting
|
I am able to produce and consume properly inside the kubernetes cluster and access broker via "test-kafka.test-kafka.svc.cluster.local:9092". So the issue is with external access of kafka alone. |
@vidhy I told you wrong above. The advertised listener should be the FQDN. You are calling it with
|
that worked like a charm. thanks @drekle Adding the listener config changes in docs will be helpful for novice users. |
OMG .. thank you thank you so much! I've been troubleshooting all day to find this answer, works like a charm now! |
Hi @drekle, We configured Kafka using incubator Helm charts on rancher Kubernetes cluster by updating values.yml with below properties and using helm install --name test-kafka -f values.yml incubator/kafka --namespace test
We are able to successfully create topics within cluster. But we still have issues in exposing Kafka outside cluster. Can you please help |
I have following config for external
Then all containers are up, but brokers can't communicate each other:
Can you help me? |
Is this a request for help?:
Yes
Is this a BUG REPORT or FEATURE REQUEST? (choose one):
Bug
Version of Helm and Kubernetes:
Helm version
Client: &version.Version{SemVer:"v2.9.1", GitCommit:"20adb27c7c5868466912eebdf6664e7390ebe710", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.9.1", GitCommit:"20adb27c7c5868466912eebdf6664e7390ebe710", GitTreeState:"clean"}
Kubernetes version
Client Version: version.Info{Major:"1", Minor:"9", GitVersion:"v1.9.6", GitCommit:"9f8ebd171479bec0ada837d7ee641dec2f8c6dd1", GitTreeState:"clean", BuildDate:"2018-03-21T15:21:50Z", GoVersion:"go1.9.3", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"9", GitVersion:"v1.9.6", GitCommit:"9f8ebd171479bec0ada837d7ee641dec2f8c6dd1", GitTreeState:"clean", BuildDate:"2018-03-21T15:13:31Z", GoVersion:"go1.9.3", Compiler:"gc", Platform:"linux/amd64"}
Which chart:
[inclubator/kafka]
What happened:
Accessing kafka from outside note working as expected.
What you expected to happen:
Kafka broker should be accessible at kafka.k8s.cluster.vpc:31091
How to reproduce it (as minimally and precisely as possible):
Follwed the given steps for helm chart setup of kafka. with external enabled
Anything else we need to know:
No issue of connectivity between the instances. Similarly the Route53 A records are getting created properly.
kc describe svc kafka-1-external -n test-kafka
Since the target port is 31091, the port should be exposed from the pod. But when i do telnet to the corresponding port connection refused.
When I exec inside the kafka-0 pod, and check the /etc/kafka/kafka.properties, it has the listeners as
The text was updated successfully, but these errors were encountered: