Skip to content

Advertise per-pod external listener when external access is enabled (3.9.0) - #62

Merged
ArnobKumarSaha merged 2 commits into
release-3.9.0from
kafka-external-3.9.0
Nov 17, 2026
Merged

ArnobKumarSaha merged 2 commits into
release-3.9.0from
kafka-external-3.9.0

Conversation

@al-masood

Copy link
Copy Markdown
Member

When external access is enabled, the KubeDB Kafka operator mounts external-listeners.properties into the temp config dir, with one <pod-name>=EXTERNAL://<address>:<port> line per broker. The kafka-init setup.sh used by 4.x already appends the pod's line to advertised.listeners. This ports the same block to the entrypoint baked into the 3.x images, so external access also works on 3.x.

  • If the file is not mounted, startup is unchanged.
  • If the file is mounted but has no line for the pod, the broker exits with an error instead of starting without an external address.

The same commit is opened against release-3.5.2, 3.6.1, 3.7.2, 3.8.1 and 3.9.0.

The webhook currently rejects broker service templates on Kafka before 4.0.0; relaxing that is a separate change in kubedb/apimachinery.

Testing, on a k3s cluster with MetalLB, using images built from this change:

  • 3.5.2: combined and topology mode with plain, SASL and TLS, scaling brokers up and down, a broker-only template, and a primary-only template.
  • 3.6.1, 3.7.2, 3.8.1, 3.9.0: one combined SASL cluster each, with primary and broker LoadBalancers. Every pod advertised its own EXTERNAL address, and a client outside the cluster produced and consumed 100 messages through the primary LoadBalancer.

Signed-off-by: Abdullah Al Masood <masood@appscode.com>
The org requires actions to be pinned to a full-length commit SHA, so the ci and release workflows failed at setup. Pin them and bump to the versions pgpool2 uses.

Signed-off-by: Abdullah Al Masood <masood@appscode.com>
@ArnobKumarSaha
ArnobKumarSaha merged commit 628ff2f into release-3.9.0 Nov 17, 2026
1 of 3 checks passed
@ArnobKumarSaha
ArnobKumarSaha deleted the kafka-external-3.9.0 branch November 17, 2026 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants