diff --git a/pkg/minikube/bootstrapper/bsutil/ktmpl/kubelet.go b/pkg/minikube/bootstrapper/bsutil/ktmpl/kubelet.go index 04c7c779c7ae..3c6f7fffda33 100644 --- a/pkg/minikube/bootstrapper/bsutil/ktmpl/kubelet.go +++ b/pkg/minikube/bootstrapper/bsutil/ktmpl/kubelet.go @@ -33,11 +33,11 @@ ExecStart={{.KubeletPath}}{{if .ExtraOptions}} {{.ExtraOptions}}{{end}} var KubeletServiceTemplate = template.Must(template.New("kubeletServiceTemplate").Parse(`[Unit] Description=kubelet: The Kubernetes Node Agent Documentation=http://kubernetes.io/docs/ +StartLimitIntervalSec=0 [Service] ExecStart={{.KubeletPath}} Restart=always -StartLimitInterval=0 # Tuned for local dev: faster than upstream default (10s), but slower than systemd default (100ms) RestartSec=600ms diff --git a/pkg/provision/buildroot.go b/pkg/provision/buildroot.go index 61f652c78096..c085c857d4d7 100644 --- a/pkg/provision/buildroot.go +++ b/pkg/provision/buildroot.go @@ -76,12 +76,12 @@ Description=Docker Application Container Engine Documentation=https://docs.docker.com After=network.target minikube-automount.service docker.socket Requires= minikube-automount.service docker.socket +StartLimitBurst=3 +StartLimitIntervalSec=60 [Service] Type=notify Restart=on-failure -StartLimitBurst=3 -StartLimitIntervalSec=60 ` if noPivot { klog.Warning("Using fundamentally insecure --no-pivot option") diff --git a/pkg/provision/ubuntu.go b/pkg/provision/ubuntu.go index 15d9c60019de..330e3d40b96a 100644 --- a/pkg/provision/ubuntu.go +++ b/pkg/provision/ubuntu.go @@ -79,12 +79,12 @@ BindsTo=containerd.service After=network-online.target firewalld.service containerd.service Wants=network-online.target Requires=docker.socket +StartLimitBurst=3 +StartLimitIntervalSec=60 [Service] Type=notify Restart=on-failure -StartLimitBurst=3 -StartLimitIntervalSec=60 ` if noPivot { klog.Warning("Using fundamentally insecure --no-pivot option")