Skip to content

Commit

Permalink
Specify machine_type for GPU nodes.
Browse files Browse the repository at this point in the history
  • Loading branch information
morgante committed Jul 9, 2020
1 parent 1cab27b commit 33d504e
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions examples/node_pool/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ module "gke" {
},
{
name = "pool-02"
machine_type = "n1-standard-2"
min_count = 1
max_count = 2
local_ssd_count = 0
Expand Down
1 change: 1 addition & 0 deletions examples/node_pool_update_variant/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ module "gke" {
},
{
name = "pool-02"
machine_type = "n1-standard-2"
min_count = 1
max_count = 2
disk_size_gb = 30
Expand Down
1 change: 1 addition & 0 deletions examples/node_pool_update_variant_beta/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ module "gke" {
},
{
name = "pool-02"
machine_type = "n1-standard-2"
min_count = 1
max_count = 2
disk_size_gb = 30
Expand Down
5 changes: 3 additions & 2 deletions test/fixtures/sandbox_enabled/example.tf
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@ module "example" {

node_pools = [
{
name = "default-node-pool"
image_type = "COS_CONTAINERD"
name = "default-node-pool"
image_type = "COS_CONTAINERD"
machine_type = "n1-standard-2"
},
]
}
2 changes: 1 addition & 1 deletion test/integration/node_pool/controls/gcloud.rb
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@
including(
"name" => "pool-02",
"config" => including(
"machineType" => "e2-medium",
"machineType" => "n1-standard-2",
),
)
)
Expand Down

0 comments on commit 33d504e

Please sign in to comment.