diff --git a/clickhouse/kustomization.yaml b/clickhouse/kustomization.yaml new file mode 100644 index 0000000..a213a09 --- /dev/null +++ b/clickhouse/kustomization.yaml @@ -0,0 +1,20 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +namespace: clickhouse-system + +resources: +- resources/namespace.yaml +- https://raw.githubusercontent.com/Altinity/clickhouse-operator/master/deploy/operator/clickhouse-operator-install-bundle.yaml + +patches: +- patch: |- + - op: add + path: /metadata/labels + value: + prometheus: default + target: + group: core + kind: Namespace + name: clickhouse-operator + version: v1 diff --git a/clickhouse/resources/namespace.yaml b/clickhouse/resources/namespace.yaml new file mode 100644 index 0000000..eaccab2 --- /dev/null +++ b/clickhouse/resources/namespace.yaml @@ -0,0 +1,7 @@ +--- +apiVersion: v1 +kind: Namespace +metadata: + name: clickhouse + labels: + prometheus: default