From 2c107084405b0c57c00f448e9b5b370bc8fbe90d Mon Sep 17 00:00:00 2001 From: Atanas Dinov Date: Thu, 27 Jun 2024 23:08:20 +0300 Subject: [PATCH] Bump restart timer to 60s Signed-off-by: Atanas Dinov --- pkg/combustion/templates/k3s-multi-node-installer.sh.tpl | 2 +- pkg/combustion/templates/k3s-single-node-installer.sh.tpl | 2 +- pkg/combustion/templates/rke2-multi-node-installer.sh.tpl | 2 +- pkg/combustion/templates/rke2-single-node-installer.sh.tpl | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/combustion/templates/k3s-multi-node-installer.sh.tpl b/pkg/combustion/templates/k3s-multi-node-installer.sh.tpl index 102c7da2..3501740f 100644 --- a/pkg/combustion/templates/k3s-multi-node-installer.sh.tpl +++ b/pkg/combustion/templates/k3s-multi-node-installer.sh.tpl @@ -52,7 +52,7 @@ WantedBy=multi-user.target [Service] Type=oneshot Restart=on-failure -RestartSec=30 +RestartSec=60 ExecStart=/opt/bin/kubectl apply -f /opt/k8s/manifests --kubeconfig=/etc/rancher/k3s/k3s.yaml # Disable the service and clean up ExecStartPost=/bin/sh -c "systemctl disable kubernetes-resources-install.service" diff --git a/pkg/combustion/templates/k3s-single-node-installer.sh.tpl b/pkg/combustion/templates/k3s-single-node-installer.sh.tpl index 4460177e..abc44459 100644 --- a/pkg/combustion/templates/k3s-single-node-installer.sh.tpl +++ b/pkg/combustion/templates/k3s-single-node-installer.sh.tpl @@ -26,7 +26,7 @@ WantedBy=multi-user.target [Service] Type=oneshot Restart=on-failure -RestartSec=30 +RestartSec=60 ExecStart=/opt/bin/kubectl apply -f /opt/k8s/manifests --kubeconfig=/etc/rancher/k3s/k3s.yaml # Disable the service and clean up ExecStartPost=/bin/sh -c "systemctl disable kubernetes-resources-install.service" diff --git a/pkg/combustion/templates/rke2-multi-node-installer.sh.tpl b/pkg/combustion/templates/rke2-multi-node-installer.sh.tpl index 8e13501d..6ca899e2 100644 --- a/pkg/combustion/templates/rke2-multi-node-installer.sh.tpl +++ b/pkg/combustion/templates/rke2-multi-node-installer.sh.tpl @@ -52,7 +52,7 @@ WantedBy=multi-user.target [Service] Type=oneshot Restart=on-failure -RestartSec=30 +RestartSec=60 # Copy kubectl in order to avoid SELinux permission issues ExecStartPre=cp /var/lib/rancher/rke2/bin/kubectl /opt/k8s/kubectl ExecStart=/opt/k8s/kubectl apply -f /opt/k8s/manifests --kubeconfig /etc/rancher/rke2/rke2.yaml diff --git a/pkg/combustion/templates/rke2-single-node-installer.sh.tpl b/pkg/combustion/templates/rke2-single-node-installer.sh.tpl index af84adca..d581fbf0 100644 --- a/pkg/combustion/templates/rke2-single-node-installer.sh.tpl +++ b/pkg/combustion/templates/rke2-single-node-installer.sh.tpl @@ -26,7 +26,7 @@ WantedBy=multi-user.target [Service] Type=oneshot Restart=on-failure -RestartSec=30 +RestartSec=60 # Copy kubectl in order to avoid SELinux permission issues ExecStartPre=cp /var/lib/rancher/rke2/bin/kubectl /opt/k8s/kubectl ExecStart=/opt/k8s/kubectl apply -f /opt/k8s/manifests --kubeconfig /etc/rancher/rke2/rke2.yaml