From 60f43aadfc8fc5374372f414b22aa00188aebeba Mon Sep 17 00:00:00 2001 From: Lennart Jern Date: Fri, 5 Mar 2021 07:56:58 +0200 Subject: [PATCH] Check for dummy kernel module The dummy module is needed for nodelocaldns. --- .../preinstall/tasks/0080-system-configurations.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/roles/kubernetes/preinstall/tasks/0080-system-configurations.yml b/roles/kubernetes/preinstall/tasks/0080-system-configurations.yml index 53c4db176fa..051b9aa351e 100644 --- a/roles/kubernetes/preinstall/tasks/0080-system-configurations.yml +++ b/roles/kubernetes/preinstall/tasks/0080-system-configurations.yml @@ -89,3 +89,10 @@ - { name: kernel.panic, value: 10 } - { name: kernel.panic_on_oops, value: 1 } when: kubelet_protect_kernel_defaults|bool + +- name: Check dummy module + modprobe: + name: dummy + state: present + params: 'numdummies=0' + when: enable_nodelocaldns