diff --git a/contrib/ansible/roles/k3s/master/templates/k3s.service.j2 b/contrib/ansible/roles/k3s/master/templates/k3s.service.j2 index 32d1a3a880..d8b9c18c14 100644 --- a/contrib/ansible/roles/k3s/master/templates/k3s.service.j2 +++ b/contrib/ansible/roles/k3s/master/templates/k3s.service.j2 @@ -13,6 +13,7 @@ LimitNPROC=infinity LimitCORE=infinity TasksMax=infinity Restart=always +RestartSec=5s [Install] WantedBy=multi-user.target diff --git a/contrib/ansible/roles/k3s/node/templates/k3s.service.j2 b/contrib/ansible/roles/k3s/node/templates/k3s.service.j2 index fffd727044..d66d4722fd 100644 --- a/contrib/ansible/roles/k3s/node/templates/k3s.service.j2 +++ b/contrib/ansible/roles/k3s/node/templates/k3s.service.j2 @@ -11,5 +11,7 @@ LimitNPROC=infinity LimitCORE=infinity TasksMax=infinity Restart=always +RestartSec=5s + [Install] WantedBy=multi-user.target diff --git a/install.sh b/install.sh index 3aef85e2db..75ef6176b6 100755 --- a/install.sh +++ b/install.sh @@ -535,6 +535,7 @@ LimitCORE=infinity TasksMax=infinity TimeoutStartSec=0 Restart=always +RestartSec=5s [Install] WantedBy=multi-user.target diff --git a/k3s.service b/k3s.service index 472f87df1d..94abfb771a 100644 --- a/k3s.service +++ b/k3s.service @@ -15,6 +15,7 @@ LimitCORE=infinity TasksMax=infinity TimeoutStartSec=0 Restart=always +RestartSec=5s [Install] WantedBy=multi-user.target