From b6d1341d7b4e97bca965a88d09921ba3bde99a68 Mon Sep 17 00:00:00 2001 From: Hector Huertas Date: Wed, 19 Dec 2018 13:15:00 +0100 Subject: [PATCH] Increase number of watches Temporal workaround for https://github.com/kubernetes/kubernetes/issues/69015 --- resources/master-kubelet.service | 3 +++ resources/worker-kubelet.service | 3 +++ 2 files changed, 6 insertions(+) diff --git a/resources/master-kubelet.service b/resources/master-kubelet.service index 68c924a..580ee36 100644 --- a/resources/master-kubelet.service +++ b/resources/master-kubelet.service @@ -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; }')" diff --git a/resources/worker-kubelet.service b/resources/worker-kubelet.service index adbc4f7..967478f 100644 --- a/resources/worker-kubelet.service +++ b/resources/worker-kubelet.service @@ -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 \