From 7c5582858915049d876312fd4c92ab49864534cf Mon Sep 17 00:00:00 2001 From: ilewis Date: Tue, 23 May 2023 16:51:26 +0100 Subject: [PATCH] Fix too many open files issue in kind --- scripts/setup-kind-cluster.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/setup-kind-cluster.sh b/scripts/setup-kind-cluster.sh index e13376520..9a36cc533 100755 --- a/scripts/setup-kind-cluster.sh +++ b/scripts/setup-kind-cluster.sh @@ -16,6 +16,10 @@ install_kind() { } install_dependencies() { + # Without this, pods may fail with 'too many open files' + # https://kind.sigs.k8s.io/docs/user/known-issues/#pod-errors-due-to-too-many-open-files + sysctl fs.inotify.max_user_watches=524288 + sysctl fs.inotify.max_user_instances=512 ## Install docker if ! command -v docker &> /dev/null; then echo "****** Installing Docker..."