Skip to content

feat(controller): allow configurable listen_host in network config#258

Open
arekborucki wants to merge 2 commits into
ClickHouse:mainfrom
arekborucki:feat/configurable-listen-host
Open

feat(controller): allow configurable listen_host in network config#258
arekborucki wants to merge 2 commits into
ClickHouse:mainfrom
arekborucki:feat/configurable-listen-host

Conversation

@arekborucki

@arekborucki arekborucki commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Why

Some Kubernetes clusters run IPv4-only, IPv6-only, or dual-stack networking, and need ClickHouse to listen only on the addresses their environment allows. Today listen_host is hardcoded to ["::", "0.0.0.0"] in the operator's network template, so the only workaround is a non-obvious settings.extraConfig merge with @remove. This exposes it as a clean, first-class API.

What

Added spec.settings.network.listenHost []string to ClickHouseSettings. The value is rendered into the server's listen_host config; when unset or empty it falls back to the previous default ["::", "0.0.0.0"], so existing clusters are unaffected. Includes regenerated CRD/deepcopy/API-reference/helm-chart and unit tests for both the default and an override case.

Related Issues

Fixes #217

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.

feat(controller): Allow for a configurable listen_host in network.yaml

1 participant