khuedoan-homelab/metal/roles/prerequisites/tasks/main.yml
Khue Doan 376f0e1b92 perf(metal): tune some kernel params for Kubernetes
The default values are too low, you may get an error in some cases
after a while (like viewing logs)
2024-01-18 17:31:23 +07:00

9 lines
300 B
YAML

- name: Adjust kernel parameters
ansible.posix.sysctl:
name: "{{ item.name }}"
value: "{{ item.value }}"
loop:
- {name: "fs.inotify.max_queued_events", value: 16384}
- {name: "fs.inotify.max_user_instances", value: 8192}
- {name: "fs.inotify.max_user_watches", value: 524288}