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

14 lines
392 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
{% if ansible_distribution in ["CentOS","RedHat","Amazon"] %}
2019-07-22 12:24:52 +08:00
net.ipv4.tcp_tw_recycle=0
{% endif %}
2019-07-22 12:24:52 +08:00
# disable ipv6
net.ipv6.conf.all.disable_ipv6=1
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