-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: add gpu node autoscaling support for all modules (terraform-…
…google-modules#807) * Add v16.0 upgrade guide * Update node_pool test to specify `gpu_resources`
- Loading branch information
James Timms
committed
Jul 4, 2021
1 parent
d541bf1
commit bfa8bf4
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Upgrading to v16.0 | ||
|
||
The v16.0 release of *kubernetes-engine* is a backwards incompatible release. | ||
|
||
### cluster_autoscaling modified | ||
The `cluster_autoscaling` variable has been modified to require a `gpu_resources` value. | ||
|
||
```diff | ||
module "gke" { | ||
source = "terraform-google-modules/kubernetes-engine/google//modules/private-cluster" | ||
- version = "~> 15.0" | ||
+ version = "~> 16.0" | ||
|
||
cluster_autoscaling = { | ||
enabled = true | ||
autoscaling_profile = "BALANCED" | ||
min_cpu_cores = 1 | ||
max_cpu_cores = 100 | ||
min_memory_gb = 1 | ||
max_memory_gb = 1000 | ||
+ gpu_resources = [{ | ||
+ resource_type = "nvidia-tesla-t4" | ||
+ minimum = 1 | ||
+ maximum = 3 | ||
+ }] | ||
} | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,6 +34,7 @@ module "example" { | |
min_cpu_cores = 5 | ||
max_memory_gb = 30 | ||
min_memory_gb = 10 | ||
gpu_resources = [] | ||
} | ||
} | ||
|