2018-02-27 07:16:34 +01:00
|
|
|
module "workers" {
|
|
|
|
source = "workers"
|
2018-03-04 02:52:01 +01:00
|
|
|
name = "${var.cluster_name}"
|
2018-02-27 07:16:34 +01:00
|
|
|
|
|
|
|
# AWS
|
|
|
|
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}"]
|
2018-02-27 07:16:34 +01:00
|
|
|
count = "${var.worker_count}"
|
|
|
|
instance_type = "${var.worker_type}"
|
|
|
|
os_channel = "${var.os_channel}"
|
|
|
|
disk_size = "${var.disk_size}"
|
|
|
|
|
|
|
|
# configuration
|
|
|
|
kubeconfig = "${module.bootkube.kubeconfig}"
|
|
|
|
ssh_authorized_key = "${var.ssh_authorized_key}"
|
|
|
|
service_cidr = "${var.service_cidr}"
|
|
|
|
cluster_domain_suffix = "${var.cluster_domain_suffix}"
|
2017-09-18 06:40:33 +02:00
|
|
|
}
|