First, install Docker if you haven't already. Then, do all the following commands in your terminal:
docker compose up -d
.
If you are using Mac ARMPLATFORM=linux/arm64 docker compose up -d
- Run the test script by running
sh tests/basic.sh <arg>
where arg is the number of nodes you want to create
docker compose down
- stop the docker composedocker compose up -d
- start the docker compose
docker-compose exec etcd-1 etcdctl --endpoints=http://localhost:2379 member list
- list all etcd nodes runningdocker-compose exec etcd-1 etcdctl --endpoints=http://localhost:2379 endpoint health
- get details about etcd healthdocker-compose exec etcd-1 etcdctl --endpoints=http://localhost:2379 get --prefix --keys-only ""
- list all keys in etcd