mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-24 16:01:09 +02:00
flannel: fix resolv.conf issue
Fix issue where flannel container did not have access to /etc/resolve.conf.
This commit is contained in:
parent
390bbf24d7
commit
03aaf056a5
@ -27,9 +27,11 @@ ExecStart=/usr/bin/rkt run --net=host \
|
|||||||
--volume runsystemd,kind=host,source=/run/systemd,readOnly=false \
|
--volume runsystemd,kind=host,source=/run/systemd,readOnly=false \
|
||||||
--volume runflannel,kind=host,source=/run/flannel,readOnly=false \
|
--volume runflannel,kind=host,source=/run/flannel,readOnly=false \
|
||||||
--volume ssl,kind=host,source=${ETCD_SSL_DIR},readOnly=true \
|
--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=runsystemd,target=/run/systemd \
|
||||||
--mount volume=runflannel,target=/run/flannel \
|
--mount volume=runflannel,target=/run/flannel \
|
||||||
--mount volume=ssl,target=${ETCD_SSL_DIR} \
|
--mount volume=ssl,target=${ETCD_SSL_DIR} \
|
||||||
|
--mount volume=resolv,target=/etc/resolv.conf \
|
||||||
${FLANNEL_IMG}:${FLANNEL_VER} \
|
${FLANNEL_IMG}:${FLANNEL_VER} \
|
||||||
-- --ip-masq=true
|
-- --ip-masq=true
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user