-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathetcd_start
19 lines (19 loc) · 840 Bytes
/
etcd_start
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
systemd-run --slice=machine \
--unit=etcd3 \
rkt run \
--net=host \
--dns=8.8.8.8 \
--hostname=$(hostname) \
--set-env=ETCD_INITIAL_ADVERTISE_PEER_URLS=http://$(hostname -I | awk '{print $1}'):2380 \
--set-env=ETCD_DISCOVERY=http://54.215.153.3/288a4e442099920f5e99cbb7dde68d09 \
--set-env=ETCD_LISTEN_PEER_URLS=http://$(hostname -I | awk '{print $1}'):2380 \
--set-env=ETCD_LISTEN_CLIENT_URLS=http://$(hostname -I | awk '{print $1}'):2379,http://$(hostname -I | awk '{print $1}'):4001,http://127.0.0.1:2379,http://127.0.0.1:4001 \
--set-env=ETCD_ADVERTISE_CLIENT_URLS=http://$(hostname -I | awk '{print $1}'):2379 \
--set-env=ETCD_NAME=$(hostname)-etcd-cluster \
--set-env=ETCD_DATA_DIR=$(hostname) \
coreos.com/etcd:v3.2.0 \
-- --log-output=stderr --- \
--insecure-options=image \
docker://dkron/dkron \
--exec="/bin/bash" \
--debug=true