tweaked k3s start
This commit is contained in:
@@ -65,11 +65,11 @@ resource "null_resource" "control_planes" {
|
||||
# Start the k3s server and wait for it to have started correctly
|
||||
provisioner "remote-exec" {
|
||||
inline = [
|
||||
"systemctl start k3s",
|
||||
"systemctl start k3s 2> /dev/null",
|
||||
<<-EOT
|
||||
timeout 120 bash <<EOF
|
||||
until systemctl status k3s > /dev/null; do
|
||||
systemctl start k3s
|
||||
systemctl start k3s 2> /dev/null
|
||||
echo "Waiting for the k3s server to start..."
|
||||
sleep 2
|
||||
done
|
||||
|
Reference in New Issue
Block a user