diff --git a/scripts/helmcharts/databases/charts/clickhouse/templates/statefulset.yaml b/scripts/helmcharts/databases/charts/clickhouse/templates/statefulset.yaml
index 110f2a9a4..da6b50be7 100644
--- a/scripts/helmcharts/databases/charts/clickhouse/templates/statefulset.yaml
+++ b/scripts/helmcharts/databases/charts/clickhouse/templates/statefulset.yaml
@@ -75,8 +75,11 @@ spec:
mountPath: /var/lib/clickhouse
- name: clickhouse-override-server-config
mountPath: /etc/clickhouse-server/config.d
+ {{- range $filename, $_ := .Values.configOverride.userConfig }}
- name: clickhouse-override-user-config
- mountPath: /etc/clickhouse-server/config.d
+ mountPath: /etc/clickhouse-server/users.d/{{$filename}}
+ subPath: {{$filename}}
+ {{- end }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- with .Values.nodeSelector }}
diff --git a/scripts/helmcharts/databases/charts/clickhouse/values.yaml b/scripts/helmcharts/databases/charts/clickhouse/values.yaml
index 1930307a7..641d80bab 100644
--- a/scripts/helmcharts/databases/charts/clickhouse/values.yaml
+++ b/scripts/helmcharts/databases/charts/clickhouse/values.yaml
@@ -86,7 +86,7 @@ storageSize: 100Gi
configOverride:
serverConfig:
- zzoverride.xml: |-
+ zz-server-override.xml: |-
#
#
# information
@@ -110,4 +110,21 @@ configOverride:
# value
#
userConfig:
- user-default.xml: |-
+ zz-user-override.xml: |-
+
+
+
+ 1
+ 1
+ 5000
+ 900
+ ignore
+ ignore
+
+
+
+
+ default
+
+
+