Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Commit

Permalink
fix(cni-networking): Enables br_netfilter kernel module (#3484)
Browse files Browse the repository at this point in the history
Without this module, iptables rules to not apply to bridges.
  • Loading branch information
thomastaylor312 authored and jackfrancis committed Jul 17, 2018
1 parent 35d85bd commit 8f53c34
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions parts/k8s/kubernetescustomscript.sh
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,11 @@ function installCNI() {
tar -xzf $CONTAINERNETWORKING_CNI_TGZ_TMP -C $CNI_BIN_DIR
chown -R root:root $CNI_BIN_DIR
chmod -R 755 $CNI_BIN_DIR
# Turn on br_netfilter (needed for the iptables rules to work on bridges)
# and permanently enable it
modprobe br_netfilter
# /etc/modules-load.d is the location used by systemd to load modules
echo -n "br_netfilter" > /etc/modules-load.d/br_netfilter.conf
}

function configAzureCNI() {
Expand Down

0 comments on commit 8f53c34

Please sign in to comment.