Charts: [incubator/kafka] external connection broke since version 0.11.0

Created on 7 Nov 2018  路  6Comments  路  Source: helm/charts

Is this a request for help?: No


Is this a BUG REPORT or FEATURE REQUEST? (choose one): BUG REPORT

Version of Helm and Kubernetes:
Helm: 2.10.0 Kubernetes: 1.10.3

Which chart:
incubator/kafka

What happened:
Can't connect from external with the version 0.11.0, and the version 0.10.1 is good.

What you expected to happen:

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know:

lifecyclstale

Most helpful comment

I've just got this working. The step missing in the documentation is to update the "listeners" configuration property. Here's my config:

configurationOverrides:
  "offsets.topic.replication.factor": 3
  "auto.leader.rebalance.enable": true
  "auto.create.topics.enable": true
  "confluent.support.metrics.enable": false
  "advertised.listeners": |-
    EXTERNAL://my-helm-release.internal.mydomain.com:$((31090 + ${KAFKA_BROKER_ID}))
  "listener.security.protocol.map": |-
    PLAINTEXT:PLAINTEXT,EXTERNAL:PLAINTEXT
  "listeners": "PLAINTEXT://0.0.0.0:9092,EXTERNAL://0.0.0.0:19092"
external:
  enabled: true
  domain: internal.mydomain.com

I'll make a pull request with the documentation update.

All 6 comments

Kinda off-topic, but @ericwangqing could you please share a working config for 0.10.1?

I've never gotten the external setup working, at any version whatsoever. It always happens one of the following:

  • Initial deployment goes badly, e.g. https://github.com/helm/charts/issues/7556
  • Deployment goes fine, but the advertised host is still an internal cluster IP, so I can write to Kafka from outside the cluster but not read from it.

I've just got this working. The step missing in the documentation is to update the "listeners" configuration property. Here's my config:

configurationOverrides:
  "offsets.topic.replication.factor": 3
  "auto.leader.rebalance.enable": true
  "auto.create.topics.enable": true
  "confluent.support.metrics.enable": false
  "advertised.listeners": |-
    EXTERNAL://my-helm-release.internal.mydomain.com:$((31090 + ${KAFKA_BROKER_ID}))
  "listener.security.protocol.map": |-
    PLAINTEXT:PLAINTEXT,EXTERNAL:PLAINTEXT
  "listeners": "PLAINTEXT://0.0.0.0:9092,EXTERNAL://0.0.0.0:19092"
external:
  enabled: true
  domain: internal.mydomain.com

I'll make a pull request with the documentation update.

It seems to work for me if I set:

kafka:
  external:
    enabled: true
    servicePort: 9092 # instead of the default 19092

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Any further update will cause the issue/pull request to no longer be considered stale. Thank you for your contributions.

This issue is being automatically closed due to inactivity.

I fixed this issue in PR https://github.com/helm/charts/pull/12778. Please read through the comments in the PR on how to use the external kafka broker feature, especially what to update in values.yaml.

Was this page helpful?
0 / 5 - 0 ratings