Skip to content

Commit

Permalink
Merge pull request #10411 from prezha/fix-docker-StartLimitIntervalSec
Browse files Browse the repository at this point in the history
move StartLimitIntervalSec param from [Service] to [Unit] section
  • Loading branch information
medyagh authored Feb 9, 2021
2 parents b414901 + 6d40ab3 commit 0f3b4b2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pkg/minikube/bootstrapper/bsutil/ktmpl/kubelet.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions pkg/provision/buildroot.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
4 changes: 2 additions & 2 deletions pkg/provision/ubuntu.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 0f3b4b2

Please sign in to comment.