diff --git a/chart/values.yaml b/chart/values.yaml index 3a105ef..e9866ae 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -5,17 +5,5 @@ tools: hashicorp-vault: {} crowdsec: {} redis: {} - clickhouse: - patches: - - target: - kind: StatefulSet - name: clickhouse - patch: |- - - op: add - path: /spec/template/spec/containers/0/volumeMounts/- - value: - name: config-volume - mountPath: /etc/clickhouse-server/users.d/custom-users.xml - subPath: custom-users.xml - readOnly: true + 'clickhouse/overlays': {} grafana: {} \ No newline at end of file diff --git a/clickhouse/overlays/kustomization.yaml b/clickhouse/overlays/kustomization.yaml new file mode 100644 index 0000000..7b9b2a9 --- /dev/null +++ b/clickhouse/overlays/kustomization.yaml @@ -0,0 +1,8 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +resources: + - ../../ # remonte vers le chart ClickHouse (Chart.yaml) + +patchesStrategicMerge: + - patch-volumeMount.yaml diff --git a/clickhouse/overlays/patch-volumeMount.yaml b/clickhouse/overlays/patch-volumeMount.yaml new file mode 100644 index 0000000..5ea7d07 --- /dev/null +++ b/clickhouse/overlays/patch-volumeMount.yaml @@ -0,0 +1,14 @@ +apiVersion: apps/v1 +kind: StatefulSet +metadata: + name: clickhouse +spec: + template: + spec: + containers: + - name: clickhouse + volumeMounts: + - name: config-volume + mountPath: /etc/clickhouse-server/users.d/custom-users.xml + subPath: custom-users.xml + readOnly: true