Ensure all Kubelet required kernel values are configured when enabling protectKernelDefaults (#8692)
This commit is contained in:
parent
0481dd946f
commit
19d5a1c7c3
1 changed files with 4 additions and 1 deletions
|
@ -113,9 +113,12 @@
|
|||
state: present
|
||||
reload: yes
|
||||
with_items:
|
||||
- { name: vm.overcommit_memory, value: 1 }
|
||||
- { name: kernel.keys.root_maxbytes, value: 25000000 }
|
||||
- { name: kernel.keys.root_maxkeys, value: 1000000 }
|
||||
- { name: kernel.panic, value: 10 }
|
||||
- { name: kernel.panic_on_oops, value: 1 }
|
||||
- { name: vm.overcommit_memory, value: 1 }
|
||||
- { name: vm.panic_on_oom, value: 0 }
|
||||
when: kubelet_protect_kernel_defaults|bool
|
||||
|
||||
- name: Check dummy module
|
||||
|
|
Loading…
Reference in a new issue