Skip to content
demo: etcd destributed key-value store
Branch: master
Clone or download
Pull request Compare This branch is 6 commits ahead of guessi:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.env
.gitignore
README.md
docker-compose.yml
main.sh

README.md

Etcd - distributed key-value store

Prerequisites

  • Docker-CE 18.06+
  • Docker Compose v1.23.1+

Docker Usage

$ docker-compose up -d

$ docker exec -it etcd1 etcdctl set secret password

$ docker exec -it etcd1 etcdctl get /secret

REST Request usage

./main.sh put_dir "/myapplication"
./main.sh put_dir "/myapplication/service1"
./main.sh put_dir "/myapplication/service2"

./main.sh put "/myapplication/service1/mykey1=value1"
./main.sh put "/myapplication/service2/mykey2=value2"

./main.sh get

Docker Images

You can’t perform that action at this time.