2017-06-27 06:55:39 +02:00
|
|
|
module "controllers" {
|
2017-07-25 04:37:27 +02:00
|
|
|
source = "../controllers"
|
2017-06-27 06:55:39 +02:00
|
|
|
cluster_name = "${var.cluster_name}"
|
|
|
|
ssh_authorized_key = "${var.ssh_authorized_key}"
|
|
|
|
|
|
|
|
# GCE
|
2017-08-13 22:02:52 +02:00
|
|
|
network = "${google_compute_network.network.name}"
|
|
|
|
count = "${var.controller_count}"
|
|
|
|
zone = "${var.zone}"
|
|
|
|
dns_zone = "${var.dns_zone}"
|
|
|
|
dns_zone_name = "${var.dns_zone_name}"
|
|
|
|
machine_type = "${var.machine_type}"
|
|
|
|
os_image = "${var.os_image}"
|
|
|
|
preemptible = "${var.controller_preemptible}"
|
2017-06-27 06:55:39 +02:00
|
|
|
|
|
|
|
# configuration
|
|
|
|
service_cidr = "${var.service_cidr}"
|
|
|
|
kubeconfig_ca_cert = "${module.bootkube.ca_cert}"
|
|
|
|
kubeconfig_kubelet_cert = "${module.bootkube.kubelet_cert}"
|
|
|
|
kubeconfig_kubelet_key = "${module.bootkube.kubelet_key}"
|
|
|
|
kubeconfig_server = "${module.bootkube.server}"
|
|
|
|
}
|
|
|
|
|
|
|
|
module "workers" {
|
2017-07-25 04:37:27 +02:00
|
|
|
source = "../workers"
|
2017-06-27 06:55:39 +02:00
|
|
|
cluster_name = "${var.cluster_name}"
|
|
|
|
ssh_authorized_key = "${var.ssh_authorized_key}"
|
|
|
|
|
|
|
|
# GCE
|
|
|
|
network = "${google_compute_network.network.name}"
|
|
|
|
count = "${var.worker_count}"
|
|
|
|
zone = "${var.zone}"
|
|
|
|
machine_type = "${var.machine_type}"
|
|
|
|
os_image = "${var.os_image}"
|
|
|
|
preemptible = "${var.worker_preemptible}"
|
|
|
|
|
|
|
|
# configuration
|
|
|
|
service_cidr = "${var.service_cidr}"
|
|
|
|
kubeconfig_ca_cert = "${module.bootkube.ca_cert}"
|
|
|
|
kubeconfig_kubelet_cert = "${module.bootkube.kubelet_cert}"
|
|
|
|
kubeconfig_kubelet_key = "${module.bootkube.kubelet_key}"
|
|
|
|
kubeconfig_server = "${module.bootkube.server}"
|
|
|
|
}
|