Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 29 additions & 29 deletions .terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ No resources.
| <a name="input_labels"></a> [labels](#input\_labels) | Labels to apply to all resources | `map(string)` | `{}` | no |
| <a name="input_materialize_instances"></a> [materialize\_instances](#input\_materialize\_instances) | Configuration for Materialize instances | <pre>list(object({<br/> name = string<br/> namespace = optional(string)<br/> database_name = string<br/> create_database = optional(bool, true)<br/> environmentd_version = optional(string, "v0.130.4")<br/> cpu_request = optional(string, "1")<br/> memory_request = optional(string, "1Gi")<br/> memory_limit = optional(string, "1Gi")<br/> in_place_rollout = optional(bool, false)<br/> request_rollout = optional(string)<br/> force_rollout = optional(string)<br/> balancer_memory_request = optional(string, "256Mi")<br/> balancer_memory_limit = optional(string, "256Mi")<br/> balancer_cpu_request = optional(string, "100m")<br/> }))</pre> | `[]` | no |
| <a name="input_namespace"></a> [namespace](#input\_namespace) | Kubernetes namespace for Materialize | `string` | `"materialize"` | no |
| <a name="input_network_config"></a> [network\_config](#input\_network\_config) | Network configuration for the GKE cluster | <pre>object({<br/> subnet_cidr = string<br/> pods_cidr = string<br/> services_cidr = string<br/> })</pre> | <pre>{<br/> "pods_cidr": "10.48.0.0/14",<br/> "services_cidr": "10.52.0.0/20",<br/> "subnet_cidr": "10.0.0.0/20"<br/>}</pre> | no |
| <a name="input_network_config"></a> [network\_config](#input\_network\_config) | Network configuration for the GKE cluster | <pre>object({<br/> subnet_cidr = string<br/> pods_cidr = string<br/> services_cidr = string<br/> })</pre> | n/a | yes |
| <a name="input_operator_namespace"></a> [operator\_namespace](#input\_operator\_namespace) | Namespace for the Materialize operator | `string` | `"materialize"` | no |
| <a name="input_operator_version"></a> [operator\_version](#input\_operator\_version) | Version of the Materialize operator to install | `string` | `null` | no |
| <a name="input_orchestratord_version"></a> [orchestratord\_version](#input\_orchestratord\_version) | Version of the Materialize orchestrator to install | `string` | `"v0.130.4"` | no |
Expand Down
6 changes: 6 additions & 0 deletions examples/simple/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ module "materialize" {
region = var.region
prefix = var.prefix

network_config = {
subnet_cidr = "10.0.0.0/20"
pods_cidr = "10.48.0.0/14"
services_cidr = "10.52.0.0/20"
}

database_config = {
tier = "db-custom-2-4096"
version = "POSTGRES_15"
Expand Down
7 changes: 7 additions & 0 deletions examples/simple/terraform.tfvars.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@ project_id = "enter-your-gcp-project-id"
prefix = "enter-a-prefix" // e.g., mz-simple, my-mz-demo
region = "us-central1"

# Network configuration
network_config = {
subnet_cidr = "10.0.0.0/20"
pods_cidr = "10.48.0.0/14"
services_cidr = "10.52.0.0/20"
}

# Once the operator is installed, you can define your Materialize instances here.
# Uncomment the following block (or provide your own instances) to configure them:

Expand Down
5 changes: 0 additions & 5 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@ variable "network_config" {
pods_cidr = string
services_cidr = string
})
default = {
subnet_cidr = "10.0.0.0/20"
pods_cidr = "10.48.0.0/14"
services_cidr = "10.52.0.0/20"
}
}

variable "gke_config" {
Expand Down