fix: 设置内核参数95-k8s-sysctl.conf

pull/646/head
gjmzj 2019-07-23 11:12:03 +08:00
parent 05a29e36f5
commit 961978869a
1 changed files with 2 additions and 0 deletions

View File

@ -2,7 +2,9 @@ net.ipv4.ip_forward = 1
net.bridge.bridge-nf-call-iptables = 1 net.bridge.bridge-nf-call-iptables = 1
net.bridge.bridge-nf-call-ip6tables = 1 net.bridge.bridge-nf-call-ip6tables = 1
net.bridge.bridge-nf-call-arptables = 1 net.bridge.bridge-nf-call-arptables = 1
{% if ansible_distribution in ["CentOS","RedHat","Amazon"] %}
net.ipv4.tcp_tw_recycle=0 net.ipv4.tcp_tw_recycle=0
{% endif %}
# disable ipv6 # disable ipv6
net.ipv6.conf.all.disable_ipv6=1 net.ipv6.conf.all.disable_ipv6=1
net.netfilter.nf_conntrack_max=1000000 net.netfilter.nf_conntrack_max=1000000