Skip to content

Commit

Permalink
docs: Add example based on ClickHouse Helm chart
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksandrTitov committed Aug 16, 2023
1 parent add9da9 commit e635879
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 0 deletions.
Empty file removed examples/.placeholder
Empty file.
25 changes: 25 additions & 0 deletions examples/clickhouse/main.tf
Original file line number Diff line number Diff line change
@@ -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"
}
}
20 changes: 20 additions & 0 deletions examples/clickhouse/providers.tf
Original file line number Diff line number Diff line change
@@ -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 {}
}

0 comments on commit e635879

Please sign in to comment.