Browse Source

Ensure all Kubelet required kernel values are configured when enabling protectKernelDefaults (#8692)

pull/8698/head
Unai Arríen 2 years ago
committed by GitHub
parent
commit
19d5a1c7c3
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions
  1. 5
      roles/kubernetes/preinstall/tasks/0080-system-configurations.yml

5
roles/kubernetes/preinstall/tasks/0080-system-configurations.yml

@ -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…
Cancel
Save