Skip to content

Commit

Permalink
update value to 8192, add max_user_watches
Browse files Browse the repository at this point in the history
  • Loading branch information
laverya committed Jan 29, 2025
1 parent 01facc8 commit b63b59f
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions pkg/preflights/host-preflight.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit b63b59f

Please sign in to comment.