configpolicy/roles/kubelet/handlers/main.yml

17 lines
262 B
YAML

- name: load kernel modules
command:
/usr/lib/systemd/systemd-modules-load
- name: set kernel tunables
command:
sysctl --system
- name: swapoff -a
command:
swapoff -a
- name: restart kubelet
service:
name: kubelet
state: restarted