mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
809f0cf05b
Added option to deploy hardened k3s Signed-off-by: Derek Nola <derek.nola@suse.com>
9 lines
208 B
Bash
9 lines
208 B
Bash
#!/bin/bash
|
|
|
|
echo "vm.panic_on_oom=0
|
|
vm.overcommit_memory=1
|
|
kernel.panic=10
|
|
kernel.panic_on_oops=1
|
|
kernel.keys.root_maxbytes=25000000
|
|
" >> /etc/sysctl.d/90-kubelet.conf
|
|
sysctl -p /etc/sysctl.d/90-kubelet.conf |