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

@@ -1,12 +1,15 @@
module "k8s" {
source = "../../modules/k8s"
region = var.region
name = var.name
environment = var.environment
owner = var.owner
k8s_dns_prefix = var.k8s_dns_prefix
k8s_node_size = var.k8s_node_size
vnet_subnet_id = module.vpc.subnets #FIXME - output from module.vpc.subnets should be map
source = "../../modules/k8s"
region = var.region
name = var.name
environment = var.environment
owner = var.owner
k8s_dns_prefix = var.k8s_dns_prefix
k8s_node_size = var.k8s_node_size
vnet_subnet_id = module.vpc.subnets #FIXME - output from module.vpc.subnets should be map
enable_auto_scaling = true
max_count = 5
min_count = 2
}
#module "main_lb" {