169163334 - Adds autoscaling to k8s

This adds node autoscaling the k8s. Pod autoscaling needs to be
configured in the kubectl config.
This commit is contained in:
Rob Gil
2019-12-26 09:10:48 -05:00
parent 3c1a199cee
commit 5eeb5f976a
3 changed files with 33 additions and 8 deletions

View File

@@ -21,6 +21,9 @@ resource "azurerm_kubernetes_cluster" "k8s" {
vnet_subnet_id = var.vnet_subnet_id
node_count = 1
enable_node_public_ip = true # Nodes need a public IP for external resources. FIXME: Switch to NAT Gateway if its available in our subscription
enable_auto_scaling = var.enable_auto_scaling
max_count = var.max_count # FIXME: if auto_scaling disabled, set to 0
min_count = var.min_count # FIXME: if auto_scaling disabled, set to 0
}
lifecycle {