From 71ab89dfc226379a32f1aa3414ffcb810652aa9a Mon Sep 17 00:00:00 2001 From: tstromberg Date: Fri, 12 Jul 2019 09:34:44 -0700 Subject: [PATCH] Reduce kubectl restart time from 10 seconds to 600ms --- pkg/minikube/bootstrapper/kubeadm/templates.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/minikube/bootstrapper/kubeadm/templates.go b/pkg/minikube/bootstrapper/kubeadm/templates.go index 85c4c36b44..70ae1aad28 100644 --- a/pkg/minikube/bootstrapper/kubeadm/templates.go +++ b/pkg/minikube/bootstrapper/kubeadm/templates.go @@ -171,7 +171,8 @@ Documentation=http://kubernetes.io/docs/ ExecStart=/usr/bin/kubelet Restart=always StartLimitInterval=0 -RestartSec=10 +# Tuned for local dev: faster than upstream default (10s), but slower than systemd default (100ms) +RestartSec=600ms [Install] WantedBy=multi-user.target