2017-06-27 06:55:39 +02:00
|
|
|
module "controllers" {
|
2018-02-26 23:06:18 +01:00
|
|
|
source = "controllers"
|
|
|
|
cluster_name = "${var.cluster_name}"
|
2017-06-27 06:55:39 +02:00
|
|
|
|
|
|
|
# GCE
|
2017-11-05 20:09:03 +01:00
|
|
|
region = "${var.region}"
|
2018-03-04 01:21:38 +01:00
|
|
|
network = "${google_compute_network.network.name}"
|
2017-08-13 22:02:52 +02:00
|
|
|
dns_zone = "${var.dns_zone}"
|
|
|
|
dns_zone_name = "${var.dns_zone_name}"
|
2018-03-04 01:21:38 +01:00
|
|
|
count = "${var.controller_count}"
|
2018-03-26 07:11:18 +02:00
|
|
|
machine_type = "${var.controller_type}"
|
2017-08-13 22:02:52 +02:00
|
|
|
os_image = "${var.os_image}"
|
2018-03-26 07:04:14 +02:00
|
|
|
disk_size = "${var.disk_size}"
|
2017-06-27 06:55:39 +02:00
|
|
|
|
|
|
|
# configuration
|
2018-02-26 21:17:42 +01:00
|
|
|
networking = "${var.networking}"
|
2018-02-26 23:06:18 +01:00
|
|
|
kubeconfig = "${module.bootkube.kubeconfig}"
|
|
|
|
ssh_authorized_key = "${var.ssh_authorized_key}"
|
2018-02-26 21:17:42 +01:00
|
|
|
service_cidr = "${var.service_cidr}"
|
|
|
|
cluster_domain_suffix = "${var.cluster_domain_suffix}"
|
2018-02-20 17:36:21 +01:00
|
|
|
clc_snippets = "${var.controller_clc_snippets}"
|
2017-06-27 06:55:39 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
module "workers" {
|
2018-02-26 23:06:18 +01:00
|
|
|
source = "workers"
|
2018-03-04 01:21:38 +01:00
|
|
|
name = "${var.cluster_name}"
|
2018-02-26 23:06:18 +01:00
|
|
|
cluster_name = "${var.cluster_name}"
|
2017-06-27 06:55:39 +02:00
|
|
|
|
|
|
|
# GCE
|
2017-11-04 18:57:12 +01:00
|
|
|
region = "${var.region}"
|
2018-03-04 01:21:38 +01:00
|
|
|
network = "${google_compute_network.network.name}"
|
2017-06-27 06:55:39 +02:00
|
|
|
count = "${var.worker_count}"
|
2018-03-26 07:11:18 +02:00
|
|
|
machine_type = "${var.worker_type}"
|
2017-06-27 06:55:39 +02:00
|
|
|
os_image = "${var.os_image}"
|
2018-03-26 07:04:14 +02:00
|
|
|
disk_size = "${var.disk_size}"
|
2017-06-27 06:55:39 +02:00
|
|
|
preemptible = "${var.worker_preemptible}"
|
|
|
|
|
|
|
|
# configuration
|
2018-02-26 23:06:18 +01:00
|
|
|
kubeconfig = "${module.bootkube.kubeconfig}"
|
|
|
|
ssh_authorized_key = "${var.ssh_authorized_key}"
|
2018-02-26 21:17:42 +01:00
|
|
|
service_cidr = "${var.service_cidr}"
|
|
|
|
cluster_domain_suffix = "${var.cluster_domain_suffix}"
|
2018-02-20 17:36:21 +01:00
|
|
|
clc_snippets = "${var.worker_clc_snippets}"
|
2017-06-27 06:55:39 +02:00
|
|
|
}
|