mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-20 22:11:39 +02:00
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:
parent
fcdd2919a4
commit
eff524ba96
@ -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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user