Skip to content

Commit

Permalink
feature: add gpu node autoscaling support for all modules (terraform-…
Browse files Browse the repository at this point in the history
…google-modules#807)

* updater example/node_pool cluster_autoscaling var to work with
  gpu_resources
  • Loading branch information
James Timms committed Jun 30, 2021
1 parent 37e0047 commit bb7ce1c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions examples/node_pool/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ variable "cluster_autoscaling" {
max_cpu_cores = number
min_memory_gb = number
max_memory_gb = number
gpu_resources = list(object({
resource_type = string
minimum = number
maximum = number
}))
})
default = {
enabled = false
Expand All @@ -68,6 +73,7 @@ variable "cluster_autoscaling" {
min_cpu_cores = 0
max_memory_gb = 0
min_memory_gb = 0
gpu_resources = []
}
description = "Cluster autoscaling configuration. See [more details](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters#clusterautoscaling)"
}

0 comments on commit bb7ce1c

Please sign in to comment.