kubeasz/roles/prepare/templates/95-k8s-sysctl.conf.j2

19 lines
515 B
Plaintext
Raw Normal View History

2017-12-28 14:34:04 +08:00
net.ipv4.ip_forward = 1
net.bridge.bridge-nf-call-iptables = 1
net.bridge.bridge-nf-call-ip6tables = 1
net.bridge.bridge-nf-call-arptables = 1
2019-10-27 23:42:02 +08:00
{% if KERNEL_VER|float < 4.12 %}
2019-07-31 10:44:36 +08:00
net.ipv4.tcp_tw_recycle = 0
{% endif %}
2019-07-31 10:44:36 +08:00
net.ipv4.tcp_tw_reuse = 0
net.core.somaxconn = 32768
net.netfilter.nf_conntrack_max=1000000
2018-07-26 14:27:26 +08:00
vm.swappiness = 0
vm.max_map_count=655360
2019-07-22 12:24:52 +08:00
fs.file-max=6553600
2019-09-03 12:39:07 +08:00
{% if PROXY_MODE == "ipvs" %}
net.ipv4.tcp_keepalive_time = 600
net.ipv4.tcp_keepalive_intvl = 30
net.ipv4.tcp_keepalive_probes = 10
{% endif %}