2018-02-27 07:16:34 +01:00
|
|
|
module "workers" {
|
2019-05-04 21:27:22 +02:00
|
|
|
source = "./workers"
|
2019-05-28 05:42:48 +02:00
|
|
|
name = var.cluster_name
|
2018-03-11 22:46:05 +01:00
|
|
|
|
2018-02-27 07:16:34 +01:00
|
|
|
# AWS
|
2019-05-28 05:42:48 +02:00
|
|
|
vpc_id = aws_vpc.network.id
|
|
|
|
subnet_ids = aws_subnet.public.*.id
|
|
|
|
security_groups = [aws_security_group.worker.id]
|
|
|
|
worker_count = var.worker_count
|
|
|
|
instance_type = var.worker_type
|
|
|
|
os_image = var.os_image
|
|
|
|
disk_size = var.disk_size
|
|
|
|
spot_price = var.worker_price
|
|
|
|
target_groups = var.worker_target_groups
|
2018-02-27 07:16:34 +01:00
|
|
|
|
|
|
|
# configuration
|
2019-09-15 01:24:32 +02:00
|
|
|
kubeconfig = module.bootstrap.kubeconfig-kubelet
|
2019-05-28 05:42:48 +02:00
|
|
|
ssh_authorized_key = var.ssh_authorized_key
|
|
|
|
service_cidr = var.service_cidr
|
|
|
|
cluster_domain_suffix = var.cluster_domain_suffix
|
|
|
|
clc_snippets = var.worker_clc_snippets
|
2019-09-28 23:59:24 +02:00
|
|
|
node_labels = var.worker_node_labels
|
2017-09-18 06:40:33 +02:00
|
|
|
}
|
2019-05-28 05:42:48 +02:00
|
|
|
|