File tree Expand file tree Collapse file tree 6 files changed +6
-5
lines changed
examples/simple_regional_cluster_autoscaling
beta-private-cluster-update-variant
beta-public-cluster-update-variant Expand file tree Collapse file tree 6 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -183,7 +183,7 @@ resource "google_container_cluster" "primary" {
183
183
}
184
184
185
185
{% if beta_cluster %}
186
- min_cpu_platform = lookup(var.node_pools[0] , "min_cpu_platform", "")
186
+ min_cpu_platform = lookup(var.cluster_autoscaling , "min_cpu_platform", "")
187
187
{% endif %}
188
188
189
189
image_type = lookup(var.cluster_autoscaling, "image_type", "COS_CONTAINERD")
Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ module "gke" {
53
53
cluster_autoscaling = {
54
54
enabled = true
55
55
autoscaling_profile = " OPTIMIZE_UTILIZATION"
56
+ min_cpu_platform = " Intel Skylake"
56
57
min_cpu_cores = 4
57
58
max_cpu_cores = 86
58
59
min_memory_gb = 16
Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ resource "google_container_cluster" "primary" {
155
155
enable_integrity_monitoring = lookup (var. cluster_autoscaling , " enable_integrity_monitoring" , true )
156
156
}
157
157
158
- min_cpu_platform = lookup (var. node_pools [ 0 ] , " min_cpu_platform" , " " )
158
+ min_cpu_platform = lookup (var. cluster_autoscaling , " min_cpu_platform" , " " )
159
159
160
160
image_type = lookup (var. cluster_autoscaling , " image_type" , " COS_CONTAINERD" )
161
161
}
Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ resource "google_container_cluster" "primary" {
155
155
enable_integrity_monitoring = lookup (var. cluster_autoscaling , " enable_integrity_monitoring" , true )
156
156
}
157
157
158
- min_cpu_platform = lookup (var. node_pools [ 0 ] , " min_cpu_platform" , " " )
158
+ min_cpu_platform = lookup (var. cluster_autoscaling , " min_cpu_platform" , " " )
159
159
160
160
image_type = lookup (var. cluster_autoscaling , " image_type" , " COS_CONTAINERD" )
161
161
}
Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ resource "google_container_cluster" "primary" {
155
155
enable_integrity_monitoring = lookup (var. cluster_autoscaling , " enable_integrity_monitoring" , true )
156
156
}
157
157
158
- min_cpu_platform = lookup (var. node_pools [ 0 ] , " min_cpu_platform" , " " )
158
+ min_cpu_platform = lookup (var. cluster_autoscaling , " min_cpu_platform" , " " )
159
159
160
160
image_type = lookup (var. cluster_autoscaling , " image_type" , " COS_CONTAINERD" )
161
161
}
Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ resource "google_container_cluster" "primary" {
155
155
enable_integrity_monitoring = lookup (var. cluster_autoscaling , " enable_integrity_monitoring" , true )
156
156
}
157
157
158
- min_cpu_platform = lookup (var. node_pools [ 0 ] , " min_cpu_platform" , " " )
158
+ min_cpu_platform = lookup (var. cluster_autoscaling , " min_cpu_platform" , " " )
159
159
160
160
image_type = lookup (var. cluster_autoscaling , " image_type" , " COS_CONTAINERD" )
161
161
}
You can’t perform that action at this time.
0 commit comments