Kubernetes-worknode的内核参数参考

51次阅读

共计 571 个字符,预计需要花费 2 分钟才能阅读完成。

集体再理论过程中踩坑后的 Kubernetes worknode 的内核参数调整,仅供参考

▶ cat etcsecuritylimits.conf
* soft nofile 100000
* hard nofile 100000

▶ cat etcsysctl.dkubernetes.conf
net.bridge.bridge-nf-call-iptables = 1
net.bridge.bridge-nf-call-ip6tables = 1
net.ipv4.ip_forward = 1
net.ipv4.tcp_tw_recycle = 0
vm.swappiness = 0
vm.overcommit_memory = 1
vm.panic_on_oom = 0
fs.inotify.max_user_instances = 8192
fs.inotify.max_user_watches = 1048576
fs.file-max = 52706963
fs.nr_open = 52706963
net.ipv6.conf.all.disable_ipv6 = 1
net.netfilter.nf_conntrack_max = 2310720
net.ipv4.ip_nonlocal_bind = 1
net.nf_conntrack_max = 1048576
net.ipv4.tcp_max_syn_backlog = 8096

正文完
 0