[bitnami/clickhouse] Fix: bind ipv6 and ipv4 by default #31168
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation
The current clickhouse helm chart don't support ipv6 only cluster.
Context
By default clickhouse bind localhost on ipv4 and ipv6 (see https://github.com/ClickHouse/ClickHouse/blob/master/programs/server/config.xml#L253).
The bitnami container override this behaviors and bind to any ipv4 by passing
-- --listen_host=0.0.0.0
toclickhouse-server
via theCMD
(see https://github.com/bitnami/containers/blob/main/bitnami/clickhouse/24/debian-12/Dockerfile#L60).this is easily override to listen on ivp6 by changing the container command to
/opt/bitnami/scripts/clickhouse/run.sh -- --listen_host="::"
.The helm chart use an hard coded script as it's entry with no possibility to pass/override argument to
clickhouse-server
. (see https://github.com/bitnami/charts/blob/main/bitnami/clickhouse/templates/scripts-configmap.yaml)Description of the change
this PR:
clickhouse-server
arguments.clickhouse-server
arguments.defaultConfigurationOverrides
to listen on ipv4 and ipv6Benefits
Add Support for ipv6 only cluster
Possible drawbacks
It's harder to change
listen_host
in the xml config file.Applicable issues
related with OneUptime/oneuptime#1348
Additional information
Checklist
Chart.yaml
according to semver. This is not necessary when the changes only affect README.md files.README.md
using readme-generator-for-helm