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}"
|
2017-08-13 22:02:52 +02:00
|
|
|
machine_type = "${var.machine_type}"
|
|
|
|
os_image = "${var.os_image}"
|
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}"
|
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}"
|
|
|
|
machine_type = "${var.machine_type}"
|
|
|
|
os_image = "${var.os_image}"
|
|
|
|
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}"
|
2017-06-27 06:55:39 +02:00
|
|
|
}
|