diff --git a/hcloud-k3s-cluster/main.tf b/hcloud-k3s-cluster/main.tf index db947ab..ebd7678 100644 --- a/hcloud-k3s-cluster/main.tf +++ b/hcloud-k3s-cluster/main.tf @@ -62,6 +62,9 @@ resource "hcloud_server_network" "k3s-node-to-network-allocation" { server_id = hcloud_server.k3s-node[count.index].id subnet_id = hcloud_network_subnet.k3s-net.id ip = "10.0.1.${count.index + 1}" + depends_on = [ + hcloud_server.k3s-node + ] }