You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Enable auto-upgrade in beta clusters with a release channel Without this setting, a cluster with a default node pool will fail when a release channel is specified. The API responds with: Error: error creating NodePool: googleapi: Error 400: Auto_upgrade cannot be false when release_channel REGULAR is set., badRequest This is noted in the documentation, that use of a release channel requires auto-upgrade and auto-repair to be enabled: https://cloud.google.com/kubernetes-engine/docs/concepts/release-channels#new-cluster * Only include comment in beta block, run make build The previous location I placed the comment meant that it was in place even in non-beta clusters, so the comment was describing behavior that wasn't actually in place. Co-authored-by: Bharath KKB <bharathkrishnakb@gmail.com>
// auto upgrade by defaults only for regional cluster as long it has multiple masters versus zonal clusters have only have a single master so upgrades are more dangerous.
75
+
{% if beta_cluster %}
76
+
// When a release channel is used, node auto-upgrade are enabled and cannot be disabled.
Copy file name to clipboardExpand all lines: modules/beta-private-cluster-update-variant/main.tf
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -66,7 +66,8 @@ locals {
66
66
zone_count=length(var.zones)
67
67
cluster_type=var.regional?"regional":"zonal"
68
68
// auto upgrade by defaults only for regional cluster as long it has multiple masters versus zonal clusters have only have a single master so upgrades are more dangerous.
69
-
default_auto_upgrade=var.regional?true:false
69
+
// When a release channel is used, node auto-upgrade are enabled and cannot be disabled.
Copy file name to clipboardExpand all lines: modules/beta-private-cluster/main.tf
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -66,7 +66,8 @@ locals {
66
66
zone_count=length(var.zones)
67
67
cluster_type=var.regional?"regional":"zonal"
68
68
// auto upgrade by defaults only for regional cluster as long it has multiple masters versus zonal clusters have only have a single master so upgrades are more dangerous.
69
-
default_auto_upgrade=var.regional?true:false
69
+
// When a release channel is used, node auto-upgrade are enabled and cannot be disabled.
Copy file name to clipboardExpand all lines: modules/beta-public-cluster-update-variant/main.tf
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -66,7 +66,8 @@ locals {
66
66
zone_count=length(var.zones)
67
67
cluster_type=var.regional?"regional":"zonal"
68
68
// auto upgrade by defaults only for regional cluster as long it has multiple masters versus zonal clusters have only have a single master so upgrades are more dangerous.
69
-
default_auto_upgrade=var.regional?true:false
69
+
// When a release channel is used, node auto-upgrade are enabled and cannot be disabled.
Copy file name to clipboardExpand all lines: modules/beta-public-cluster/main.tf
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -66,7 +66,8 @@ locals {
66
66
zone_count=length(var.zones)
67
67
cluster_type=var.regional?"regional":"zonal"
68
68
// auto upgrade by defaults only for regional cluster as long it has multiple masters versus zonal clusters have only have a single master so upgrades are more dangerous.
69
-
default_auto_upgrade=var.regional?true:false
69
+
// When a release channel is used, node auto-upgrade are enabled and cannot be disabled.
0 commit comments