2018-02-27 07:16:34 +01:00
|
|
|
module "workers" {
|
2019-05-04 21:27:22 +02:00
|
|
|
source = "./workers"
|
2018-03-11 22:46:05 +01:00
|
|
|
name = "${var.cluster_name}"
|
|
|
|
|
2018-02-27 07:16:34 +01:00
|
|
|
# AWS
|
2018-03-11 22:46:05 +01:00
|
|
|
vpc_id = "${aws_vpc.network.id}"
|
|
|
|
subnet_ids = ["${aws_subnet.public.*.id}"]
|
2017-09-18 06:40:33 +02:00
|
|
|
security_groups = ["${aws_security_group.worker.id}"]
|
2019-05-28 01:33:21 +02:00
|
|
|
worker_count = "${var.worker_count}"
|
2018-03-11 22:46:05 +01:00
|
|
|
instance_type = "${var.worker_type}"
|
2018-05-15 08:38:16 +02:00
|
|
|
os_image = "${var.os_image}"
|
2018-03-11 22:46:05 +01:00
|
|
|
disk_size = "${var.disk_size}"
|
2018-04-29 22:19:00 +02:00
|
|
|
spot_price = "${var.worker_price}"
|
2019-04-01 08:22:47 +02:00
|
|
|
target_groups = ["${var.worker_target_groups}"]
|
2018-02-27 07:16:34 +01:00
|
|
|
|
|
|
|
# configuration
|
2019-01-03 08:30:42 +01:00
|
|
|
kubeconfig = "${module.bootkube.kubeconfig-kubelet}"
|
2018-03-11 22:46:05 +01:00
|
|
|
ssh_authorized_key = "${var.ssh_authorized_key}"
|
|
|
|
service_cidr = "${var.service_cidr}"
|
2018-02-27 07:16:34 +01:00
|
|
|
cluster_domain_suffix = "${var.cluster_domain_suffix}"
|
2018-02-20 17:36:21 +01:00
|
|
|
clc_snippets = "${var.worker_clc_snippets}"
|
2017-09-18 06:40:33 +02:00
|
|
|
}
|