Skip to content

Commit

Permalink
Merge pull request #8 from sailthru/hpa-referent-version
Browse files Browse the repository at this point in the history
Make scale_target_ref api_version match deployment
  • Loading branch information
dylannz-sailthru authored Jun 11, 2020
2 parents 94ddfae + 7466d99 commit 22108fd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions horizontal_pod_autoscaler.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ resource "kubernetes_horizontal_pod_autoscaler" "ambassador" {
target_cpu_utilization_percentage = var.autoscaling_target_cpu_utilization_percentage

scale_target_ref {
kind = "Deployment"
name = var.name
api_version = "extensions/v1beta1"
kind = "Deployment"
name = var.name
}
}

Expand Down

0 comments on commit 22108fd

Please sign in to comment.