Skip to content

Commit

Permalink
set default autoscaling service_account to not be 'default' (#801)
Browse files Browse the repository at this point in the history
* set default service_account to not be 'default'

Signed-off-by: Bob Callaway <[email protected]>

* remove =

Signed-off-by: Bob Callaway <[email protected]>

---------

Signed-off-by: Bob Callaway <[email protected]>
  • Loading branch information
bobcallaway authored Oct 26, 2023
1 parent 184dc62 commit 9eb31e2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions terraform/gcp/modules/gke_cluster/cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,10 @@ resource "google_container_cluster" "cluster" {
autoscaling_profile = var.cluster_autoscaling_profile
enabled = var.cluster_autoscaling_enabled

auto_provisioning_defaults {
service_account = google_service_account.gke-sa.email
}

resource_limits {
resource_type = "cpu"
minimum = var.resource_limits_resource_cpu_min
Expand Down

0 comments on commit 9eb31e2

Please sign in to comment.