Skip to content

Commit b63b59f

Browse files
committed
update value to 8192, add max_user_watches
1 parent 01facc8 commit b63b59f

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

pkg/preflights/host-preflight.yaml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -905,11 +905,20 @@ spec:
905905
checkName: "Adequate inotify max_user_instances"
906906
outcomes:
907907
- fail:
908-
when: 'fs.inotify.max_user_instances < 1000'
909-
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'."
908+
when: 'fs.inotify.max_user_instances < 8192'
909+
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'."
910910
- pass:
911-
when: 'fs.inotify.max_user_instances > 999'
911+
when: 'fs.inotify.max_user_instances > 8191'
912912
message: "Adequate inotify max_user_instances."
913+
- sysctl:
914+
checkName: "Adequate inotify max_user_watches"
915+
outcomes:
916+
- fail:
917+
when: 'fs.inotify.max_user_watches < 8192'
918+
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'."
919+
- pass:
920+
when: 'fs.inotify.max_user_watches > 8191'
921+
message: "Adequate inotify max_user_watches."
913922
- networkNamespaceConnectivity:
914923
collectorName: check-network-namespace-connectivity
915924
outcomes:

0 commit comments

Comments
 (0)