Run etcd as follows (I use boot2dokcer, so i get the ip first and let etcd use it for its addr
parameter)
BIP=$(boot2docker ip)
docker run -t -i -p 4001:4001 quay.io/coreos/etcd -addr $BIP:4001
#update etcd with some initial values
curl http://$BIP:4001/v2/keys/myapp/database/url -XPUT -d value="cs:///org/c/mynewsql/members"
curl http://$BIP:4001/v2/keys/myapp/database/user -XPUT -d value="newurl//ashwin"
Get the latest version of confd from here (https://github.com/kelseyhightower/confd/releases). Confd support was added in version 0.7.0
confd -watch=true -backend=etcd -verbose=true -node=$BIP:4001
Update etcd with these values to see confd picking up the changes.
curl http://$BIP:4001/v2/keys/myapp/database/url -XPUT -d value="cs:///org/c/oldsql/members"