diff --git a/examples/.placeholder b/examples/.placeholder deleted file mode 100644 index e69de29..0000000 diff --git a/examples/clickhouse/main.tf b/examples/clickhouse/main.tf new file mode 100644 index 0000000..fe7bc65 --- /dev/null +++ b/examples/clickhouse/main.tf @@ -0,0 +1,25 @@ +module "telemetry_namespace" { + source = "cloud-labs-infra/namespace/kubernetes" + version = "1.0.0" + + name = "clickhouse" +} + +module "clickhouse" { + source = "cloud-labs-infra/release/helm" + version = "1.0.0" + + repository = "oci://registry-1.docker.io/bitnamicharts" + chart = "clickhouse" + chart_version = "3.4.3" + + name = "clickhouse" + namespace = module.telemetry_namespace.name + + set = { + "shards" = 1 + "replicaCount" = 1 + "global.storageClass" = "csi-disk" + "persistence.size" = "400Gi" + } +} diff --git a/examples/clickhouse/providers.tf b/examples/clickhouse/providers.tf new file mode 100644 index 0000000..36317dc --- /dev/null +++ b/examples/clickhouse/providers.tf @@ -0,0 +1,20 @@ +terraform { + required_version = "~> 1.4" + + required_providers { + kubernetes = { + source = "hashicorp/kubernetes" + version = "~>2.20" + } + helm = { + source = "hashicorp/helm" + version = "~>2.10" + } + } +} + +provider "kubernetes" {} + +provider "helm" { + kubernetes {} +}