Kurulum ile 3 tane binary geliyor. Açıklaması şöyle
etcd, which runs the actual etcd server.etcdctl, which is a client binary for interacting with the server.etcdutl, which provides some helper utilities for operations like backups.
get seçeneği
Örnek
Şöyle yaparız. get seçeneği key değerini de ekrana yazar. Bunu istemiyorsak --print-value-only kullanılır
$ ./etcdctl put foo barOK$ ./etcdctl get foofoobar
--rev seçeneği
Şöyle yaparız. 
$ ./etcdctl get foo --rev=2 --print-value-only bar $ ./etcdctl get foo --rev=3 --print-value-only baz
etcd komutu
ÖrnekŞöyle yaparız
$ ./etcd --data-dir=/tmp/etcd/data1 --name node1 \
  --initial-advertise-peer-urls http://127.0.0.1:2380 \
  --listen-peer-urls http://127.0.0.1:2380 \
  --advertise-client-urls http://127.0.0.1:2379 \
  --listen-client-urls http://127.0.0.1:2379 \
  --initial-cluster node1=http://127.0.0.1:2380,node2=http://127.0.0.1:3380,
      node3=http://127.0.0.1:4380 \
  --initial-cluster-state new \
  --initial-cluster-token mytoken 
 
Hiç yorum yok:
Yorum Gönder