Skip to content

Commit

Permalink
added vpa option
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriele Diener committed Jul 1, 2019
1 parent 40c3554 commit 222b5fd
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions cluster/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ resource "google_container_cluster" "cluster" {

ip_allocation_policy {
use_ip_aliases = true
cluster_secondary_range_name = "${var.pods_range_name}"
cluster_secondary_range_name = "${var.pods_range_name}"
services_secondary_range_name = "${var.services_range_name}"
}

Expand Down Expand Up @@ -59,25 +59,29 @@ resource "google_container_cluster" "cluster" {
}
}

vertical_pod_autoscaling {
enabled = true
}

addons_config {
kubernetes_dashboard {
disabled = true
}
http_load_balancing {
disabled = false
}
network_policy_config {
disabled = false
}
istio_config {
disabled = "${!var.istio}"
}
horizontal_pod_autoscaling {
disabled = false
}
cloudrun_config {
disabled = true
}
network_policy_config {
disabled = false
}
istio_config {
disabled = "${!var.istio}"
}
horizontal_pod_autoscaling {
disabled = false
}
cloudrun_config {
disabled = true
}
}

resource_labels = "${var.labels}"
Expand Down

0 comments on commit 222b5fd

Please sign in to comment.