Skip to content

Commit

Permalink
allow clickhouse subnet to be configured and use class c
Browse files Browse the repository at this point in the history
  • Loading branch information
raubitsj committed Sep 11, 2024
1 parent 13d0f4a commit 8c84c7f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ module "clickhouse" {
network = local.network.id
namespace = var.namespace

clickhouse_reserved_ip_range = var.clickhouse_subnetwork_cidr
clickhouse_private_endpoint_service_name = var.clickhouse_private_endpoint_service_name
clickhouse_region = var.clickhouse_region
}
Expand Down
2 changes: 1 addition & 1 deletion modules/clickhouse/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ variable "network" {
variable "clickhouse_reserved_ip_range" {
type = string
description = "Reserved IP range for ClickHouse private link"
default = "10.20.0.0/16"
default = "10.50.0.0/24"
}

variable "clickhouse_private_endpoint_service_name" {
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -368,3 +368,9 @@ variable "clickhouse_region" {
description = "ClickHouse region (us-east1, us-central1, etc)."
default = ""
}

variable "clickhouse_subnetwork_cidr" {
default = "10.50.0.0/24"
description = "ClickHouse private service connect subnetwork"
type = string
}

0 comments on commit 8c84c7f

Please sign in to comment.