Skip to content

Commit

Permalink
Merge pull request #209 from kbst/gkenodepooltaints
Browse files Browse the repository at this point in the history
GKE: Custom location and taints for custom node pools
  • Loading branch information
pst authored Aug 23, 2021
2 parents ec75004 + 26a7f05 commit b6a0db6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
5 changes: 4 additions & 1 deletion 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 All @@ -33,11 +35,12 @@ resource "google_container_node_pool" "current" {
workload_metadata_config {
node_metadata = var.node_workload_metadata_config
}

taint = var.taint
}

management {
auto_repair = var.auto_repair
auto_upgrade = var.auto_upgrade
}
}

12 changes: 12 additions & 0 deletions google/_modules/gke/node_pool/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit b6a0db6

Please sign in to comment.