- Run
docker-compose up
- Run below test to ensure keys/values are distributed
watch -n 2 "set -x; curl -s http://127.0.0.1:2379/health; export RND=\$RANDOM; echo; docker exec -it etcd-1 /bin/sh -c \"etcdctl member list && etcdctl put \$RND bar && etcdctl get \$RND\" && docker exec -it etcd-2 /bin/sh -c \"etcdctl get \$RND\""
- If you seebar
at the end, this means it was distributed across the cluster properly
-
Notifications
You must be signed in to change notification settings - Fork 0
veertuinc/docker-compose-etcd-cluster
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Example of running an etcd cluster with docker-compose
Resources
Code of conduct
Security policy
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published