github.com/imran-kn/cilium-fork@v1.6.9/contrib/systemd/cilium-etcd.service (about) 1 [Unit] 2 Description=cilium-etcd 3 Documentation=https://github.com/cilium/cilium 4 Requires=docker.service 5 6 [Service] 7 Type=oneshot 8 RemainAfterExit=yes 9 TimeoutStartSec=0 10 ExecStartPre=/usr/bin/docker pull quay.io/coreos/etcd:v3.1.0 11 ExecStartPre=-/usr/bin/docker rm -f cilium-etcd 12 ExecStartPre=/usr/bin/docker create \ 13 -v /usr/share/ca-certificates/:/etc/ssl/certs \ 14 -p 4001:4001 -p 2380:2380 -p 2379:2379 \ 15 --name cilium-etcd \ 16 quay.io/coreos/etcd:v3.1.0 \ 17 etcd -name etcd0 \ 18 -advertise-client-urls http://127.0.0.1:2379,http://127.0.0.1:4001 \ 19 -listen-client-urls http://0.0.0.0:2379,http://0.0.0.0:4001 \ 20 -initial-cluster-token etcd-cluster-1 \ 21 -initial-cluster-state new 22 23 ExecStart=-/usr/bin/docker start cilium-etcd 24 ExecStop=-/usr/bin/docker rm -f cilium-etcd 25 26 [Install] 27 WantedBy=multi-user.target