Serve Consul with etcd
Branch: master
Clone or download
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.
cmd/cetcd initial commit Oct 24, 2016
scripts initial commit Oct 24, 2016
vendor
CONTRIBUTING.md initial commit Oct 24, 2016
DCO initial commit Oct 24, 2016
LICENSE
NOTICE
Procfile initial commit Oct 24, 2016
Procfile.consul initial commit Oct 24, 2016
Procfile.unix initial commit Oct 24, 2016
Procfile.xchk initial commit Oct 24, 2016
README.md
code-of-conduct.md update CoC Jan 4, 2018
glide.lock
glide.yaml
kv.go initial commit Oct 24, 2016
session.go
txn.go
xchk.go initial commit Oct 24, 2016

README.md

cetcd

A consul "personality" for etcd. Point a consul client at cetcd to dispatch the operations on an etcd cluster.

Usage

Forwarding consul requests on :8500 to an etcd server listening on localhost:2379:

go install github.com/coreos/cetcd/cmd/cetcd
cetcd -etcd localhost:2379  -consuladdr 0.0.0.0:8500

Cross-checking consul emulation with a native consul server on 127.0.0.1:8501:

cetcd -etcd localhost:2379  -consuladdr 0.0.0.0:8500 -oracle 127.0.0.1:8501

Simple testing with curl:

goreman start
curl -X PUT -d 'test' http://127.0.0.1:8500/v1/kv/testkey?flags=42
curl http://127.0.0.1:8500/v1/kv/testkey