try kustomize overlays
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
apiVersion: argoproj.io/v1alpha1
|
apiVersion: argoproj.io/v1alpha1
|
||||||
kind: Application
|
kind: Application
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ $app_name }}
|
name: {{ index (splitList "/" $app_name) 0 }}
|
||||||
namespace: argocd
|
namespace: argocd
|
||||||
finalizers:
|
finalizers:
|
||||||
- resources-finalizer.argocd.argoproj.io
|
- resources-finalizer.argocd.argoproj.io
|
||||||
|
|||||||
@@ -5,17 +5,5 @@ tools:
|
|||||||
hashicorp-vault: {}
|
hashicorp-vault: {}
|
||||||
crowdsec: {}
|
crowdsec: {}
|
||||||
redis: {}
|
redis: {}
|
||||||
clickhouse:
|
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
|
|
||||||
grafana: {}
|
grafana: {}
|
||||||
8
clickhouse/kustomization.yaml
Normal file
8
clickhouse/kustomization.yaml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
|
||||||
|
resources:
|
||||||
|
- ./chart # remonte vers le chart ClickHouse (Chart.yaml)
|
||||||
|
|
||||||
|
patchesStrategicMerge:
|
||||||
|
- patch-volumeMount.yaml
|
||||||
14
clickhouse/patch-volumeMount.yaml
Normal file
14
clickhouse/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