a99010b8c2
- Integration test specifically spins up an Etcd cluster with three nodes.
30 lines
1.1 KiB
YAML
30 lines
1.1 KiB
YAML
etcd1:
|
|
image: quay.io/coreos/etcd:v2.2.0
|
|
net: "host"
|
|
command: >
|
|
--name etcd1
|
|
--listen-peer-urls http://localhost:7001
|
|
--listen-client-urls http://localhost:4001
|
|
--initial-advertise-peer-urls http://localhost:7001
|
|
--advertise-client-urls http://localhost:4001
|
|
--initial-cluster etcd1=http://localhost:7001,etcd2=http://localhost:7002,etcd3=http://localhost:7003
|
|
etcd2:
|
|
image: quay.io/coreos/etcd:v2.2.0
|
|
net: "host"
|
|
command: >
|
|
--name etcd2
|
|
--listen-peer-urls http://localhost:7002
|
|
--listen-client-urls http://localhost:4002
|
|
--initial-advertise-peer-urls http://localhost:7002
|
|
--advertise-client-urls http://localhost:4002
|
|
--initial-cluster etcd1=http://localhost:7001,etcd2=http://localhost:7002,etcd3=http://localhost:7003
|
|
etcd3:
|
|
image: quay.io/coreos/etcd:v2.2.0
|
|
net: "host"
|
|
command: >
|
|
--name etcd3
|
|
--listen-peer-urls http://localhost:7003
|
|
--listen-client-urls http://localhost:4003
|
|
--initial-advertise-peer-urls http://localhost:7003
|
|
--advertise-client-urls http://localhost:4003
|
|
--initial-cluster etcd1=http://localhost:7001,etcd2=http://localhost:7002,etcd3=http://localhost:7003
|