From beabaa83a1c5298b30ce063121b3ced5413c1e8b Mon Sep 17 00:00:00 2001 From: Peter Kurfer Date: Tue, 26 Nov 2024 20:33:39 +0100 Subject: [PATCH] feat(clickhouse): deploy cluster --- clickhouse/resources/plausible-db.yaml | 35 ++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 clickhouse/resources/plausible-db.yaml diff --git a/clickhouse/resources/plausible-db.yaml b/clickhouse/resources/plausible-db.yaml new file mode 100644 index 0000000..e0dae8d --- /dev/null +++ b/clickhouse/resources/plausible-db.yaml @@ -0,0 +1,35 @@ +apiVersion: "clickhouse.altinity.com/v1" +kind: "ClickHouseInstallation" +metadata: + name: "plausible-db" +spec: + defaults: + templates: + dataVolumeClaimTemplate: data-volume-template + logVolumeClaimTemplate: log-volume-template + configuration: + users: + plausible/password_sha256_hex: a374efcf8b9693f8d28dd4f097d199f0005903dfb9728ade188f0c30b4827078 + clusters: + - name: "plausible" + layout: + shardsCount: 1 + replicasCount: 1 + templates: + volumeClaimTemplates: + - name: data-volume-template + spec: + storageClassName: "hcloud-volumes" + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 10Gi + - name: log-volume-template + spec: + storageClassName: "hcloud-blob" + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 100Mi