mirror of
https://github.com/openshift/installer.git
synced 2026-02-05 15:47:14 +01:00
Currently all nodes are exposed on the default public network. This fixes it by only exposing the master nodes on the public network and restricts etcd and worker nodes on a private subnet.
16 lines
759 B
HCL
16 lines
759 B
HCL
data "template_file" "userdata-worker" {
|
|
count = "${var.worker_count}"
|
|
template = "${file("${path.module}/userdata-worker.yml")}"
|
|
|
|
vars {
|
|
kube_config = "${base64encode(file("${path.root}/../assets/auth/kubeconfig"))}"
|
|
tectonic_version = "${var.tectonic_version}"
|
|
etcd_fqdn = "${element(openstack_compute_instance_v2.etcd_node.*.access_ip_v4, 0)}"
|
|
ca = "${base64encode(file("${path.root}/../assets/tls/ca.crt"))}"
|
|
client_crt = "${base64encode(file("${path.root}/../assets/tls/kubelet.crt"))}"
|
|
client_crt_key = "${base64encode(file("${path.root}/../assets/tls/kubelet.key"))}"
|
|
node_hostname = "${var.cluster_name}-worker-${count.index}"
|
|
base_domain = "${var.base_domain}"
|
|
}
|
|
}
|