diff --git a/README.md b/README.md index 693e5b5..e7b1840 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,7 @@ This module depends on the following external tools: | Name | Description | Type | Default | Required | |------|-------------|------|---------|:--------:| | [additional\_ip\_range\_pods](#input\_additional\_ip\_range\_pods) | additional\_ip\_range\_pods | `list(any)` | `[]` | no | +| [deletion\_protection](#input\_deletion\_protection) | Whether to enable deletion protection for the GKE cluster. | `bool` | `false` | no | | [enable\_workload\_identity](#input\_enable\_workload\_identity) | Whether to enable workload identity. If enabled, 'netd' is deployed by GKE. | `bool` | `false` | no | | [kubernetes\_version](#input\_kubernetes\_version) | The version of Kubernetes/GKE to use. | `string` | n/a | yes | | [name](#input\_name) | The name of the GKE cluster. | `string` | n/a | yes | diff --git a/main.tf b/main.tf index 67bf196..28add73 100644 --- a/main.tf +++ b/main.tf @@ -49,6 +49,7 @@ module "main" { min_count = node_pool.min_nodes name = key preemptible = node_pool.preemptible + pod_range = node_pool.pod_range } ] diff --git a/variables.tf b/variables.tf index d8ee03e..2bf4c19 100644 --- a/variables.tf +++ b/variables.tf @@ -94,3 +94,11 @@ variable "vpc_id" { description = "The ID of the VPC in which to create the GKE cluster." type = string } + +variable "deletion_protection" { + description = "Whether to enable deletion protection for the GKE cluster." + type = bool + default = false +} + +