diff --git a/metal/cluster.yml b/metal/cluster.yml index 86d4c564..2e69fccb 100644 --- a/metal/cluster.yml +++ b/metal/cluster.yml @@ -1,6 +1,7 @@ - name: Create Kubernetes cluster hosts: metal roles: + - prerequisites - k3s - automatic_upgrade diff --git a/metal/roles/prerequisites/tasks/main.yml b/metal/roles/prerequisites/tasks/main.yml new file mode 100644 index 00000000..9cd637ec --- /dev/null +++ b/metal/roles/prerequisites/tasks/main.yml @@ -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}