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

@@ -33,3 +33,22 @@ variable "vnet_subnet_id" {
description = "Subnet to use for the default k8s pool"
type = string
}
variable "enable_auto_scaling" {
default = false
type = string
description = "Enable or disable autoscaling (Default: false)"
}
variable "max_count" {
default = 1
type = string
description = "Maximum number of nodes to use in autoscaling. This requires `enable_auto_scaling` to be set to true"
}
variable "min_count" {
default = 1
type = string
description = "Minimum number of nodes to use in autoscaling. This requires `enable_auto_scaling` to be set to true"
}