We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd56a1e commit 8725525Copy full SHA for 8725525
1 file changed
scripts/run-etcd.sh
@@ -0,0 +1,23 @@
1
+ETCD_VER=v3.5.14
2
+
3
+rm -rf /tmp/etcd-data.tmp && mkdir -p /tmp/etcd-data.tmp && \
4
+ docker run -d \
5
+ -p 2379:2379 \
6
+ -p 2380:2380 \
7
+ --mount type=bind,source=/tmp/etcd-data.tmp,destination=/etcd-data \
8
+ --name etcd-gcr-${ETCD_VER} \
9
+ gcr.io/etcd-development/etcd:${ETCD_VER} \
10
+ /usr/local/bin/etcd \
11
+ --name s1 \
12
+ --data-dir /etcd-data \
13
+ --listen-client-urls http://0.0.0.0:2379 \
14
+ --advertise-client-urls http://0.0.0.0:2379 \
15
+ --listen-peer-urls http://0.0.0.0:2380 \
16
+ --initial-advertise-peer-urls http://0.0.0.0:2380 \
17
+ --initial-cluster s1=http://0.0.0.0:2380 \
18
+ --initial-cluster-token tkn \
19
+ --initial-cluster-state new \
20
+ --log-level info \
21
+ --logger zap \
22
+ --log-outputs stderr
23
0 commit comments