making k3s start more robust

This commit is contained in:
Karim Naufal
2022-02-20 02:04:37 +01:00
parent c49a65308b
commit e39dc064e2
4 changed files with 7 additions and 3 deletions

View File

@@ -84,6 +84,7 @@ resource "hcloud_server" "first_control_plane" {
<<-EOT
timeout 120 bash <<EOF
until systemctl status k3s > /dev/null; do
systemctl start k3s
echo "Waiting for the k3s server to start..."
sleep 2
done