From dcce738641a30ac3efb512a96457b6fd940edacc Mon Sep 17 00:00:00 2001 From: Viktor Barzin Date: Sat, 21 Feb 2026 20:21:04 +0000 Subject: [PATCH] [ci skip] Bump inotify max_user_instances from 512 to 8192 Fixes "failed to create fsnotify watcher: too many open files" in Drone CI builds where vitest exhausts the default inotify instance limit. --- modules/kubernetes/monitoring/loki.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/kubernetes/monitoring/loki.tf b/modules/kubernetes/monitoring/loki.tf index dd8b9545..14ecd1a8 100644 --- a/modules/kubernetes/monitoring/loki.tf +++ b/modules/kubernetes/monitoring/loki.tf @@ -73,7 +73,7 @@ resource "kubernetes_daemon_set_v1" "sysctl-inotify" { image = "busybox:1.37" command = [ "sh", "-c", - "sysctl -w fs.inotify.max_user_watches=1048576 && sysctl -w fs.inotify.max_user_instances=512 && sysctl -w fs.inotify.max_queued_events=1048576" + "sysctl -w fs.inotify.max_user_watches=1048576 && sysctl -w fs.inotify.max_user_instances=8192 && sysctl -w fs.inotify.max_queued_events=1048576" ] security_context { privileged = true