diff --git a/main.tf b/main.tf index 3650304..d0eb508 100644 --- a/main.tf +++ b/main.tf @@ -153,10 +153,8 @@ resource "hcloud_placement_group" "k3s" { } } -/* data "hcloud_load_balancer" "traefik" { name = "traefik" - depends_on = [hcloud_server.agents[0]] + depends_on = [module.first_control_plane] } -*/ diff --git a/master.tf b/master.tf index dd51aeb..9dc91c1 100644 --- a/master.tf +++ b/master.tf @@ -157,7 +157,14 @@ resource "null_resource" "first_control_plane" { "kubectl apply -k /tmp/post_install", "echo 'Waiting for the system-upgrade-controller deployment to become available...'", "kubectl -n system-upgrade wait --for=condition=available --timeout=120s deployment/system-upgrade-controller", - "kubectl -n system-upgrade apply -f /tmp/post_install/plans.yaml" + "kubectl -n system-upgrade apply -f /tmp/post_install/plans.yaml", + <<-EOT + timeout 120 bash <