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" {
183183 }
184184
185185 {% 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", "")
187187 {% endif %}
188188
189189 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" {
5353 cluster_autoscaling = {
5454 enabled = true
5555 autoscaling_profile = " OPTIMIZE_UTILIZATION"
56+ min_cpu_platform = " Intel Skylake"
5657 min_cpu_cores = 4
5758 max_cpu_cores = 86
5859 min_memory_gb = 16
Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ resource "google_container_cluster" "primary" {
155155 enable_integrity_monitoring = lookup (var. cluster_autoscaling , " enable_integrity_monitoring" , true )
156156 }
157157
158- min_cpu_platform = lookup (var. node_pools [ 0 ] , " min_cpu_platform" , " " )
158+ min_cpu_platform = lookup (var. cluster_autoscaling , " min_cpu_platform" , " " )
159159
160160 image_type = lookup (var. cluster_autoscaling , " image_type" , " COS_CONTAINERD" )
161161 }
Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ resource "google_container_cluster" "primary" {
155155 enable_integrity_monitoring = lookup (var. cluster_autoscaling , " enable_integrity_monitoring" , true )
156156 }
157157
158- min_cpu_platform = lookup (var. node_pools [ 0 ] , " min_cpu_platform" , " " )
158+ min_cpu_platform = lookup (var. cluster_autoscaling , " min_cpu_platform" , " " )
159159
160160 image_type = lookup (var. cluster_autoscaling , " image_type" , " COS_CONTAINERD" )
161161 }
Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ resource "google_container_cluster" "primary" {
155155 enable_integrity_monitoring = lookup (var. cluster_autoscaling , " enable_integrity_monitoring" , true )
156156 }
157157
158- min_cpu_platform = lookup (var. node_pools [ 0 ] , " min_cpu_platform" , " " )
158+ min_cpu_platform = lookup (var. cluster_autoscaling , " min_cpu_platform" , " " )
159159
160160 image_type = lookup (var. cluster_autoscaling , " image_type" , " COS_CONTAINERD" )
161161 }
Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ resource "google_container_cluster" "primary" {
155155 enable_integrity_monitoring = lookup (var. cluster_autoscaling , " enable_integrity_monitoring" , true )
156156 }
157157
158- min_cpu_platform = lookup (var. node_pools [ 0 ] , " min_cpu_platform" , " " )
158+ min_cpu_platform = lookup (var. cluster_autoscaling , " min_cpu_platform" , " " )
159159
160160 image_type = lookup (var. cluster_autoscaling , " image_type" , " COS_CONTAINERD" )
161161 }
You can’t perform that action at this time.
0 commit comments