diff --git a/google/_modules/gke/node_pool/main.tf b/google/_modules/gke/node_pool/main.tf index b3bc6ce4..631025d7 100644 --- a/google/_modules/gke/node_pool/main.tf +++ b/google/_modules/gke/node_pool/main.tf @@ -11,6 +11,8 @@ resource "google_container_node_pool" "current" { max_node_count = var.max_node_count } + node_locations = var.node_locations + # # # Node config @@ -33,6 +35,8 @@ resource "google_container_node_pool" "current" { workload_metadata_config { node_metadata = var.node_workload_metadata_config } + + taint = var.taint } management { @@ -40,4 +44,3 @@ resource "google_container_node_pool" "current" { auto_upgrade = var.auto_upgrade } } - diff --git a/google/_modules/gke/node_pool/variables.tf b/google/_modules/gke/node_pool/variables.tf index 34c0c092..4e2cbb0f 100644 --- a/google/_modules/gke/node_pool/variables.tf +++ b/google/_modules/gke/node_pool/variables.tf @@ -101,3 +101,15 @@ variable "node_workload_metadata_config" { description = "How to expose the node metadata to the workload running on the node." type = string } + +variable "taint" { + description = "Taints to configure for the node pool." + type = list(any) + default = [] +} + +variable "node_locations" { + type = list(string) + description = "List of zones in the cluster's region to start worker nodes in. Defaults to cluster's node locations." + default = null +}