tweak to cluster provisioning null ressource, destroy, and moved lb waiting to master.tf
This commit is contained in:
10
master.tf
10
master.tf
@@ -157,7 +157,15 @@ 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 <<EOF
|
||||
until [ -n "\$(kubectl get -n kube-system service/traefik --output=jsonpath='{.status.loadBalancer.ingress[0].ip}' 2> /dev/null)" ]; do
|
||||
echo "Waiting for load-balancer to get an IP..."
|
||||
sleep 2
|
||||
done
|
||||
EOF
|
||||
EOT
|
||||
]
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user