开启ipv4内核转发之前加载br_netfilter模块

pull/74/head
tracybin 2018-01-11 18:34:46 +08:00
parent 3b4f5879be
commit 7611edcbdf
1 changed files with 3 additions and 0 deletions

View File

@ -62,6 +62,9 @@
- name: 设置系统参数
copy: src=95-k8s-sysctl.conf dest=/etc/sysctl.d/95-k8s-sysctl.conf
- name: 加载br_netfilter模块
shell: "modprobe br_netfilter"
- name: 生效系统参数
shell: "sysctl -p /etc/sysctl.d/95-k8s-sysctl.conf"
ignore_errors: true