flannel: load iptables kmod prior to start

flannel execs iptables which will try to load the
proper kernel mod if needed but that doesn't work
from container.

Fixes https://github.com/coreos/bugs/issues/270
This commit is contained in:
Eugene Yakubovich 2015-02-16 12:41:06 -08:00
parent fcdd2919a4
commit eff524ba96
2 changed files with 1 additions and 0 deletions

View File

@ -15,6 +15,7 @@ Environment="DOCKER_HOST=unix:///var/run/early-docker.sock"
Environment="FLANNEL_VER={{flannel_ver}}" Environment="FLANNEL_VER={{flannel_ver}}"
LimitNOFILE=1048576 LimitNOFILE=1048576
LimitNPROC=1048576 LimitNPROC=1048576
ExecStartPre=/sbin/modprobe ip_tables
ExecStartPre=/usr/bin/mkdir -p /run/flannel ExecStartPre=/usr/bin/mkdir -p /run/flannel
ExecStartPre=/usr/bin/touch /run/flannel/options.env ExecStartPre=/usr/bin/touch /run/flannel/options.env