Skip to content

Commit e674a74

Browse files
committed
Validated change
1 parent 07407a8 commit e674a74

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

gke/standard/zonal/dws/main.tf

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2024 Google LLC
2+
* Copyright 2025 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -21,30 +21,36 @@ resource "google_container_cluster" "default" {
2121
name = "gke-standard-zonal-flex-cluster"
2222
location = "us-central1-a"
2323
initial_node_count = 1
24-
24+
min_master_version = "1.32.2-gke.1652000"
25+
release_channel {
26+
# To use flex-start in GKE, your cluster must use version 1.32.2-gke.1652000 or later.
27+
channel = "RAPID"
28+
}
2529
node_config {
2630
machine_type = "e2-medium"
2731
}
2832
}
2933
# [END gke_standard_zonal_dws_flex_cluster]
3034

31-
3235
# [START gke_standard_zonal_dws_non_q_flex]
33-
resource "google_container_node_pool" "dws_non_q_flex" {
36+
resource "google_container_node_pool" "default" {
3437
provider = google-beta
3538
name = "gke-standard-zonal-dws-non-q-flex"
3639
cluster = google_container_cluster.default.name
3740
location = google_container_cluster.default.location
3841

39-
initial_node_count = 0
4042
autoscaling {
4143
total_min_node_count = 0
4244
total_max_node_count = 1
4345
}
4446

47+
queued_provisioning {
48+
enabled = false
49+
}
50+
4551
# More details on usage https://cloud.google.com/kubernetes-engine/docs/how-to/dws-flex-start-training
4652
node_config {
47-
machine_type = "e2-medium"
53+
machine_type = "a3-highgpu-8g"
4854
flex_start = true
4955

5056
reservation_affinity {

gke/standard/zonal/dws/test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2024 Google LLC
1+
# Copyright 2025 Google LLC
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)