[WIFI-12021] Add: new nodegroup ready for OWLS

Signed-off-by: Dmitry Dunaev <dmitry@opsfleet.com>
This commit is contained in:
Dmitry Dunaev
2022-12-21 12:57:05 +01:00
parent 4faa0b62ae
commit 8d73600a2e
2 changed files with 45 additions and 0 deletions

View File

@@ -145,6 +145,46 @@ module "eks" {
},
]
}
], [
for subnet in module.vpc_main.private_subnets :
# OWLS testing nodes with taints
{
name = format("tests-owls-%s", data.aws_subnet.private_az[subnet].availability_zone)
asg_desired_capacity = var.node_group_settings["min_capacity"]
asg_max_size = var.node_group_settings["max_capacity"]
asg_min_size = var.node_group_settings["min_capacity"]
instance_type = var.testing_owls_instance_type
additional_userdata = local.worker_additional_userdata
kubelet_extra_args = "--node-labels=node.kubernetes.io/lifecycle=normal,project=ucentral,env=owls --register-with-taints tests=true:NoSchedule --allowed-unsafe-sysctls net.ipv4.tcp_keepalive_intvl,net.ipv4.tcp_keepalive_probes,net.ipv4.tcp_keepalive_time"
subnets = [subnet]
tags = [
{
key : "k8s.io/cluster-autoscaler/enabled",
value : true,
propagate_at_launch : true,
},
{
key : "k8s.io/cluster-autoscaler/${local.cluster_name}",
value : true
propagate_at_launch : true,
},
{
key : "k8s.io/cluster-autoscaler/node-template/label/project",
value : "ucentral",
propagate_at_launch : true,
},
{
key : "k8s.io/cluster-autoscaler/node-template/label/env",
value : "owls",
propagate_at_launch : true,
},
{
key : "k8s.io/cluster-autoscaler/node-template/taint/tests",
value : "true:NoSchedule",
propagate_at_launch : true,
},
]
}
])
worker_groups_launch_template = [

View File

@@ -59,6 +59,11 @@ variable "testing_big_instance_type" {
default = "m5a.xlarge"
}
variable "testing_owls_instance_type" {
type = string
default = "c6a.2xlarge"
}
variable "spot_instance_types" {
type = list(string)
default = ["t3.small"]