Add node_labels variable in workers modules to set initial node labels (#550)

* Also add `worker_node_labels` variable in `kubernetes` modules to set
initial node labels for the default workers
This commit is contained in:
Valer Cara
2019-09-29 00:59:24 +03:00
committed by Dalton Hubble
parent 8703f2c3c5
commit 99ab81f79c
20 changed files with 64 additions and 0 deletions

View File

@ -86,6 +86,7 @@ data "template_file" "worker-config" {
cluster_dns_service_ip = cidrhost(var.service_cidr, 10)
cluster_domain_suffix = var.cluster_domain_suffix
cgroup_driver = local.flavor == "flatcar" && local.channel == "edge" ? "systemd" : "cgroupfs"
node_labels = join(",", var.node_labels)
}
}