Split the ClickHouse configuration into separate ConfigMaps for server and user configurations. This allows more granular management of the different configuration types and proper mounting to their respective paths. - Created separate serverConfig and userConfig under configOverride - Added user-default.xml under userConfig - Updated StatefulSet to mount each ConfigMap separately Signed-off-by: rjshrjndrn <rjshrjndrn@gmail.com>
20 lines
438 B
YAML
20 lines
438 B
YAML
---
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: clickhouse-server-override
|
|
data:
|
|
{{- range $filename, $content := .Values.configOverride.serverConfig }}
|
|
{{ $filename }}: |-
|
|
{{ $content | indent 4 }}
|
|
{{- end }}
|
|
---
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: clickhouse-user-override
|
|
data:
|
|
{{- range $filename, $content := .Values.configOverride.userConfig }}
|
|
{{ $filename }}: |-
|
|
{{ $content | indent 4 }}
|
|
{{- end }}
|