@@ -3763,49 +3763,63 @@ resource "google_container_cluster" "cluster" {
3763
3763
deletion_protection = false
3764
3764
network = "%s"
3765
3765
subnetwork = "%s"
3766
+ min_master_version = "1.32.0-gke.1448000"
3766
3767
}
3767
3768
3768
3769
resource "google_container_node_pool" "np1" {
3769
3770
name = "%s"
3770
3771
location = "us-central1-a"
3771
3772
cluster = google_container_cluster.cluster.name
3772
3773
initial_node_count = 2
3774
+ // 2025-02-03: current default cluster version is 1.31.5-gke.1023000. This will change over time.
3775
+ // Reference: https://cloud.google.com/kubernetes-engine/docs/release-notes#current_versions
3773
3776
}
3774
3777
3775
3778
resource "google_container_node_pool" "np2" {
3776
3779
name = "%s"
3777
3780
location = "us-central1-a"
3778
3781
cluster = google_container_cluster.cluster.name
3779
3782
initial_node_count = 2
3783
+ // 2025-02-03: current default cluster version is 1.31.5-gke.1023000. This will change over time.
3784
+ // Reference: https://cloud.google.com/kubernetes-engine/docs/release-notes#current_versions
3780
3785
}
3781
3786
` , cluster , networkName , subnetworkName , np1 , np2 )
3782
3787
}
3783
3788
3784
3789
func testAccContainerNodePool_concurrentUpdate (cluster , np1 , np2 , networkName , subnetworkName string ) string {
3785
3790
return fmt .Sprintf (`
3786
3791
resource "google_container_cluster" "cluster" {
3787
- name = "%s"
3788
- location = "us-central1-a"
3789
- initial_node_count = 3
3792
+ name = "%s"
3793
+ location = "us-central1-a"
3794
+ initial_node_count = 3
3790
3795
deletion_protection = false
3791
- network = "%s"
3792
- subnetwork = "%s"
3796
+ network = "%s"
3797
+ subnetwork = "%s"
3798
+ min_master_version = "1.32.0-gke.1448000"
3793
3799
}
3794
3800
3795
3801
resource "google_container_node_pool" "np1" {
3796
3802
name = "%s"
3797
3803
location = "us-central1-a"
3798
3804
cluster = google_container_cluster.cluster.name
3799
3805
initial_node_count = 2
3800
- version = "1.29.4-gke.1043002"
3806
+ version = "1.32.0-gke.1448000"
3807
+ // The node version must remain within one minor version of the cluster ("master") version, and it must not exceed the cluster ("master") version
3808
+ // Cross-ref: https://github.com/hashicorp/terraform-provider-google/issues/21116
3809
+ // Cross-ref: https://github.com/GoogleCloudPlatform/magic-modules/pull/11115
3810
+ // Reference: https://cloud.google.com/kubernetes-engine/docs/release-notes#current_versions
3801
3811
}
3802
3812
3803
3813
resource "google_container_node_pool" "np2" {
3804
3814
name = "%s"
3805
3815
location = "us-central1-a"
3806
3816
cluster = google_container_cluster.cluster.name
3807
3817
initial_node_count = 2
3808
- version = "1.29.4-gke.1043002"
3818
+ version = "1.32.0-gke.1448000"
3819
+ // The node version must remain within one minor version of the cluster ("master") version, and it must not exceed the cluster ("master") version
3820
+ // Cross-ref: https://github.com/hashicorp/terraform-provider-google/issues/21116
3821
+ // Cross-ref: https://github.com/GoogleCloudPlatform/magic-modules/pull/11115
3822
+ // Reference: https://cloud.google.com/kubernetes-engine/docs/release-notes#current_versions
3809
3823
}
3810
3824
` , cluster , networkName , subnetworkName , np1 , np2 )
3811
3825
}
0 commit comments