Skip to content
Sam Batschelet edited this page May 29, 2017 · 1 revision

Welcome to the Etcd3 wiki!

v3 API resources

###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

basics

  • export ETCDCTL_API=3 gives access to v3 API.

write,read to etcd via etcdctl

  • 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

Clone this wiki locally