2017-07-17 07:45:34 +02:00
|
|
|
resource "matchbox_group" "workers" {
|
|
|
|
count = "${length(var.worker_names)}"
|
|
|
|
name = "${format("%s-%s", var.cluster_name, element(var.worker_names, count.index))}"
|
|
|
|
profile = "${matchbox_profile.bootkube-worker-pxe.name}"
|
|
|
|
|
|
|
|
selector {
|
|
|
|
mac = "${element(var.worker_macs, count.index)}"
|
|
|
|
}
|
|
|
|
|
|
|
|
metadata {
|
|
|
|
pxe = "true"
|
|
|
|
domain_name = "${element(var.worker_domains, count.index)}"
|
|
|
|
etcd_endpoints = "${join(",", formatlist("%s:2379", var.controller_domains))}"
|
|
|
|
|
|
|
|
# TODO
|
2017-12-09 22:36:59 +01:00
|
|
|
etcd_on_host = "true"
|
|
|
|
k8s_etcd_service_ip = "10.3.0.15"
|
|
|
|
k8s_dns_service_ip = "${var.kube_dns_service_ip}"
|
|
|
|
cluster_domain_suffix = "${var.cluster_domain_suffix}"
|
|
|
|
ssh_authorized_key = "${var.ssh_authorized_key}"
|
2017-07-17 07:45:34 +02:00
|
|
|
}
|
|
|
|
}
|