-
Notifications
You must be signed in to change notification settings - Fork 5
Home
Sam Batschelet edited this page May 29, 2017
·
1 revision
Welcome to the Etcd3 wiki!
- https://github.com/coreos/etcd/blob/master/Documentation/dev-guide/apispec/swagger/rpc.swagger.json
- https://github.com/coreos/etcd/blob/master/Documentation/dev-guide/api_reference_v3.md
###installation and getting started with etcd and etcdctl
curl -L https://github.com/coreos/etcd/releases/download/v3.1.0-alpha.0/etcd-v3.1.0-alpha.0-linux-amd64.tar.gz -o etcd-v3.1.0-alpha.0-linux-amd64.tar.gz
tar xzvf etcd-v3.1.0-alpha.0-linux-amd64.tar.gz && cd etcd-v3.1.0-alpha.0-linux-amd64
./etcd --version
- export ETCDCTL_API=3 gives access to v3 API.
ETCDCTL_API=3 ./etcdctl --endpoints=localhost:2379 put foo "bar"
ETCDCTL_API=3 ./etcdctl --endpoints=localhost:2379 get foo
###start singe etcd for testing. $ etcd&
###enable auth
-
etcdctl role user add root
-
etcdctl user add root
-
etcdctl user grant-role root root
-
etcdctl auth enable