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)

* 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
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
28 changes: 28 additions & 0 deletions docs/upgrading_to_v16.0.md
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
+ }]
}
}
```
1 change: 1 addition & 0 deletions test/fixtures/node_pool/example.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ module "example" {
min_cpu_cores = 5
max_memory_gb = 30
min_memory_gb = 10
gpu_resources = []
}
}

0 comments on commit bfa8bf4

Please sign in to comment.