Persist br_netfilter module loading (#1760)
This commit is contained in:
parent
ad9fa73301
commit
56763d4288
1 changed files with 6 additions and 0 deletions
|
@ -79,6 +79,12 @@
|
||||||
state: present
|
state: present
|
||||||
when: modinfo_br_netfilter.rc == 0
|
when: modinfo_br_netfilter.rc == 0
|
||||||
|
|
||||||
|
- name: Persist br_netfilter module
|
||||||
|
copy:
|
||||||
|
dest: /etc/modules-load.d/kubespray-br_netfilter.conf
|
||||||
|
content: br_netfilter
|
||||||
|
when: modinfo_br_netfilter.rc == 0
|
||||||
|
|
||||||
# kube-proxy needs net.bridge.bridge-nf-call-iptables enabled when found if br_netfilter is not a module
|
# kube-proxy needs net.bridge.bridge-nf-call-iptables enabled when found if br_netfilter is not a module
|
||||||
- name: Check if bridge-nf-call-iptables key exists
|
- name: Check if bridge-nf-call-iptables key exists
|
||||||
command: "sysctl net.bridge.bridge-nf-call-iptables"
|
command: "sysctl net.bridge.bridge-nf-call-iptables"
|
||||||
|
|
Loading…
Reference in a new issue