Skip to content

Commit

Permalink
Allow having a node pool's node locations differ from the cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
pst committed Aug 17, 2021
1 parent ac5838c commit 26a7f05
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions google/_modules/gke/node_pool/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ resource "google_container_node_pool" "current" {
max_node_count = var.max_node_count
}

node_locations = var.node_locations

#
#
# Node config
Expand Down
6 changes: 6 additions & 0 deletions google/_modules/gke/node_pool/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,9 @@ variable "taint" {
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
}

0 comments on commit 26a7f05

Please sign in to comment.