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:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user