flannel: fix resolv.conf issue

Fix issue where flannel container did not have access to
/etc/resolve.conf.
This commit is contained in:
Andrew Jeddeloh 2016-07-05 13:17:01 -07:00
parent 390bbf24d7
commit 03aaf056a5

View File

@ -27,9 +27,11 @@ ExecStart=/usr/bin/rkt run --net=host \
--volume runsystemd,kind=host,source=/run/systemd,readOnly=false \
--volume runflannel,kind=host,source=/run/flannel,readOnly=false \
--volume ssl,kind=host,source=${ETCD_SSL_DIR},readOnly=true \
--volume resolv,kind=host,source=/etc/resolv.conf,readOnly=true \
--mount volume=runsystemd,target=/run/systemd \
--mount volume=runflannel,target=/run/flannel \
--mount volume=ssl,target=${ETCD_SSL_DIR} \
--mount volume=resolv,target=/etc/resolv.conf \
${FLANNEL_IMG}:${FLANNEL_VER} \
-- --ip-masq=true