Skip to content

Commit

Permalink
Merge pull request #321 from recognizegroup/feature/TD-590_reverse_or…
Browse files Browse the repository at this point in the history
…der_to_hotfix_issue

TD-590 Reverse order to temp fix issue hashicorp/terraform-provider-kubernetes#1188
  • Loading branch information
tom-reinders authored May 9, 2023
2 parents 897f493 + 383bdda commit e422e04
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modules/kubernetes/deployment_with_service/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -257,11 +257,11 @@ resource "kubernetes_horizontal_pod_autoscaler_v2" "resource-scaler" {
type = "Resource"

resource {
name = "cpu"
name = "memory"

target {
type = "Utilization"
average_utilization = lookup(var.scaler.metrics, "cpu", 70)
average_utilization = lookup(var.scaler.metrics, "memory", 80)
}
}
}
Expand All @@ -270,11 +270,11 @@ resource "kubernetes_horizontal_pod_autoscaler_v2" "resource-scaler" {
type = "Resource"

resource {
name = "memory"
name = "cpu"

target {
type = "Utilization"
average_utilization = lookup(var.scaler.metrics, "memory", 80)
average_utilization = lookup(var.scaler.metrics, "cpu", 70)
}
}
}
Expand Down

0 comments on commit e422e04

Please sign in to comment.