Simple CLI tool for etcd
go build
in some cases (for example for running inside containers) need to build statically without dependency on libc:
go build -ldflags "-linkmode external -extldflags -static"
./etcd-walker [-host host] [-port port] [-debug]
Default values are: localhost for host, 2379 for port, debug is false
to start etcd as a Docker container:
docker run -d --restart unless-stopped -p 2379:2379 --name etcd quay.io/coreos/etcd:v3.3.27 /usr/local/bin/etcd -advertise-client-urls http://0.0.0.0:2379 -listen-client-urls http://0.0.0.0:2379
testing:
curl -L http://localhost:2379/v2/keys/test -XPUT -d value="test value"