Skip to content

Commit

Permalink
Increase number of watches
Browse files Browse the repository at this point in the history
Temporal workaround for kubernetes/kubernetes#69015

(cherry picked from commit b6d1341)
  • Loading branch information
hectorhuertas committed Dec 19, 2018
1 parent c99b027 commit 749c444
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions resources/master-kubelet.service
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ ExecStartPre=/usr/bin/mkdir -p /var/lib/calico
# This is a partial workaround to this upstream Kubernetes issue:
# https://github.com/kubernetes/kubernetes/issues/41916#issuecomment-312428731
ExecStartPre=/sbin/sysctl -w net.ipv4.tcp_retries2=8
# This is a temporal workaround this upstream Kubernetes issue:
# https://github.com/kubernetes/kubernetes/issues/69015
ExecStartPre=/sbin/sysctl -w fs.inotify.max_user_watches=524288
ExecStartPre=/opt/bin/cfssl-keys-and-certs-get
ExecStartPre=/opt/bin/cfssl-new-cert
ExecStartPre=-/bin/sh -c "docker restart $(docker ps --no-trunc | grep 'kube-controller-manager' | awk '{ print $1; }')"
Expand Down
3 changes: 3 additions & 0 deletions resources/worker-kubelet.service
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ ExecStartPre=/usr/bin/mkdir -p /var/lib/calico
# This is a partial workaround to this upstream Kubernetes issue:
# https://github.com/kubernetes/kubernetes/issues/41916#issuecomment-312428731
ExecStartPre=/sbin/sysctl -w net.ipv4.tcp_retries2=8
# This is a temporal workaround this upstream Kubernetes issue:
# https://github.com/kubernetes/kubernetes/issues/69015
ExecStartPre=/sbin/sysctl -w fs.inotify.max_user_watches=524288
ExecStartPre=/opt/bin/cfssl-new-cert
ExecStart=/usr/bin/docker \
run \
Expand Down

0 comments on commit 749c444

Please sign in to comment.