Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: preflight for at least 1000 fs.inotify.max_user_instances #1763

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions pkg/preflights/host-preflight.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -901,6 +901,24 @@ spec:
- pass:
when: 'net.ipv4.ip_forward > 0'
message: "IP forwarding is enabled."
- sysctl:
checkName: "Adequate inotify max_user_instances"
outcomes:
- fail:
when: 'fs.inotify.max_user_instances < 1024'
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 1024, and run 'sudo sysctl -p'."
- pass:
when: 'fs.inotify.max_user_instances > 1023'
message: "Adequate inotify max_user_instances."
- sysctl:
checkName: "Adequate inotify max_user_watches"
outcomes:
- fail:
when: 'fs.inotify.max_user_watches < 1024'
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 1024, and run 'sudo sysctl -p'."
- pass:
when: 'fs.inotify.max_user_watches > 1023'
message: "Adequate inotify max_user_watches."
- networkNamespaceConnectivity:
collectorName: check-network-namespace-connectivity
outcomes:
Expand Down
Loading