Skip to content

Commit

Permalink
Merge pull request #1651 from GiganticMinecraft/add_kernel_param_modi…
Browse files Browse the repository at this point in the history
…fication

modify kernel param surrounding cgroups v2
  • Loading branch information
outductor authored Jan 1, 2024
2 parents 37733dd + 565ba2b commit fbfcadb
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ fi
sudo systemctl restart containerd

# Modify kernel parameters for Kubernetes
# inotify instance number is very limited in Ubuntu 22.04 and it has to be at least more than pod number * 2
cat <<EOF | tee /etc/sysctl.d/k8s.conf
net.bridge.bridge-nf-call-ip6tables = 1
net.bridge.bridge-nf-call-iptables = 1
Expand All @@ -105,6 +106,9 @@ kernel.panic_on_oops = 1
kernel.keys.root_maxkeys = 1000000
kernel.keys.root_maxbytes = 25000000
net.ipv4.conf.*.rp_filter = 0
net.ipv4.tcp_fastopen=3
fs.inotify.max_user_watches=65536
fs.inotify.max_user_instances=8192
EOF
sysctl --system

Expand Down

0 comments on commit fbfcadb

Please sign in to comment.