From b63b59f296eea1bdb0a7e1f13efa241c0a105aff Mon Sep 17 00:00:00 2001 From: Andrew Lavery Date: Wed, 29 Jan 2025 15:27:45 -0500 Subject: [PATCH] update value to 8192, add max_user_watches --- pkg/preflights/host-preflight.yaml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/pkg/preflights/host-preflight.yaml b/pkg/preflights/host-preflight.yaml index b6e710950..c957f743b 100644 --- a/pkg/preflights/host-preflight.yaml +++ b/pkg/preflights/host-preflight.yaml @@ -905,11 +905,20 @@ spec: checkName: "Adequate inotify max_user_instances" outcomes: - fail: - when: 'fs.inotify.max_user_instances < 1000' - message: "Inadequate inotify max_user_instances. To enable it, edit /etc/sysctl.conf, add or edit 'fs.inotify.max_user_instances' to a value of at least 1000, and run 'sudo sysctl -p'." + when: 'fs.inotify.max_user_instances < 8192' + message: "Inadequate inotify max_user_instances. To enable it, edit /etc/sysctl.conf, add or edit 'fs.inotify.max_user_instances' to a value of at least 8192, and run 'sudo sysctl -p'." - pass: - when: 'fs.inotify.max_user_instances > 999' + when: 'fs.inotify.max_user_instances > 8191' message: "Adequate inotify max_user_instances." + - sysctl: + checkName: "Adequate inotify max_user_watches" + outcomes: + - fail: + when: 'fs.inotify.max_user_watches < 8192' + message: "Inadequate inotify max_user_watches. To enable it, edit /etc/sysctl.conf, add or edit 'fs.inotify.max_user_watches' to a value of at least 8192, and run 'sudo sysctl -p'." + - pass: + when: 'fs.inotify.max_user_watches > 8191' + message: "Adequate inotify max_user_watches." - networkNamespaceConnectivity: collectorName: check-network-namespace-connectivity outcomes: