Files
charts/bitnami/clickhouse-operator/templates/chi-configd-configmap.yaml
Javier J. Salmerón García 9c8e84c917 [bitnami/clickhouse-operator] feat: Allow setting IP Families (#33606)
* [bitnami/clickhouse-operator] feat:  Allow setting IP Families

Signed-off-by: Javier J. Salmerón García <javier.salmeron@broadcom.com>

* Update CHANGELOG.md

Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com>

---------

Signed-off-by: Javier J. Salmerón García <javier.salmeron@broadcom.com>
Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com>
Co-authored-by: Bitnami Bot <bitnami.bot@broadcom.com>
2025-05-12 12:09:55 +02:00

49 lines
1.7 KiB
YAML

{{- /*
Copyright Broadcom, Inc. All Rights Reserved.
SPDX-License-Identifier: APACHE-2.0
*/}}
{{- if not .Values.existingChiConfigdConfigmap }}
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ printf "%s-chi-configd" (include "common.names.fullname" .) }}
namespace: {{ include "common.names.namespace" . | quote }}
labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }}
app.kubernetes.io/part-of: clickhouse-operator
app.kubernetes.io/component: operator
{{- if .Values.commonAnnotations }}
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
{{- end }}
data:
{{- if .Values.chiConfigd }}
{{- range $key, $value := .Values.chiConfigd }}
{{ $key }}: |
{{- include "common.tplvalues.render" (dict "value" $value "context" $) | nindent 4 }}
{{- end }}
{{- else }}
# Ref: https://github.com/Altinity/clickhouse-operator/tree/master/deploy/builder/templates-config/chi/config.d
01-clickhouse-01-listen.xml: |
<yandex>
{{- if .Values.ipFamily.enableIpv4 }}
<listen_host>0.0.0.0</listen_host>
{{- end }}
{{- if .Values.ipFamily.enableIpv6 }}
<listen_host>::</listen_host>
{{- end }}
<listen_try>1</listen_try>
</yandex>
01-clickhouse-02-logger.xml: |
<yandex>
<logger>
<level>debug</level>
<log>/opt/bitnami/clickhouse/logs/clickhouse-server.log</log>
<errorlog>/opt/bitnami/clickhouse/logs/clickhouse-server.err.log</errorlog>
<size>1000M</size>
<count>10</count>
<console>1</console>
</logger>
</yandex>
{{- end }}
{{- end }}