2017-04-14 17:39:40 +08:00
|
|
|
[Unit]
|
|
|
|
Description=Flanneld overlay address etcd agent
|
|
|
|
After=network.target
|
|
|
|
After=network-online.target
|
|
|
|
Wants=network-online.target
|
|
|
|
After=etcd.service
|
|
|
|
Before=docker.service
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=notify
|
|
|
|
EnvironmentFile=/etc/sysconfig/flanneld
|
|
|
|
EnvironmentFile=-/etc/sysconfig/docker-network
|
2018-02-07 15:42:36 +08:00
|
|
|
ExecStart=/usr/bin/flanneld-start \
|
|
|
|
-etcd-endpoints=${FLANNEL_ETCD_ENDPOINTS} \
|
|
|
|
-etcd-prefix=${FLANNEL_ETCD_PREFIX} \
|
|
|
|
$FLANNEL_OPTIONS
|
2017-04-14 17:39:40 +08:00
|
|
|
ExecStartPost=/usr/libexec/flannel/mk-docker-opts.sh -k DOCKER_NETWORK_OPTIONS -d /run/flannel/docker
|
|
|
|
Restart=on-failure
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|
|
|
|
RequiredBy=docker.service
|