try kustomize overlays
This commit is contained in:
11
clickhouse/overlays/kustomization.yaml
Normal file
11
clickhouse/overlays/kustomization.yaml
Normal file
@@ -0,0 +1,11 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
helmCharts:
|
||||
- name: clickhouse
|
||||
chart: ../../clickhouse # chemin relatif vers le Chart.yaml
|
||||
releaseName: clickhouse
|
||||
namespace: tools
|
||||
valuesFile: values.yaml # si tu veux passer des valeurs custom
|
||||
patches:
|
||||
- patch-volumeMount.yaml
|
||||
14
clickhouse/overlays/patch-volumeMount.yaml
Normal file
14
clickhouse/overlays/patch-volumeMount.yaml
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user