-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.tf
22 lines (22 loc) · 846 Bytes
/
init.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
module "first_control_plane" {
source = "./host"
name = "${var.cluster_name}-${local.control_planes[0].name}"
type = local.control_planes[0].server_type
location = local.control_planes[0].location
hcloud_firewall_ids = [hcloud_firewall.k3s.id]
hcloud_ssh_keys = var.hcloud_ssh_keys
hcloud_network_id = hcloud_network.k3s.id
private_ipv4 = local.control_planes[0].private_ipv4
ssh_port = var.ssh_port
k3s_config = merge(
var.control_planes_custom_config,
{
cluster-init = true
node-ip = local.control_planes[0].private_ipv4
node-label = local.control_planes[0].labels
node-taint = local.control_planes[0].taints
kubelet-arg = var.k3s_global_kubelet_args
}
)
runcmd = local.k3s_server_runcmd
}