mirror of
https://github.com/khuedoan/homelab.git
synced 2024-12-22 21:14:50 +07:00
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)
This commit is contained in:
parent
e1c276e403
commit
376f0e1b92
@ -1,6 +1,7 @@
|
||||
- name: Create Kubernetes cluster
|
||||
hosts: metal
|
||||
roles:
|
||||
- prerequisites
|
||||
- k3s
|
||||
- automatic_upgrade
|
||||
|
||||
|
8
metal/roles/prerequisites/tasks/main.yml
Normal file
8
metal/roles/prerequisites/tasks/main.yml
Normal file
@ -0,0 +1,8 @@
|
||||
- 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}
|
Loading…
Reference in New Issue
Block a user