etcd常用操作记录

231 阅读1分钟

http请求查看key:

查看所有key-value
curl -s http://127.0.0.1:2379/v2/keys/?recursive=true
查看指定的
curl -s http://127.0.0.1:2379/v2/keys/aa/bbb

使用etcdctl 操作

etcdctl get/set /key-path
etcdctl watch --recursive /test/aaa/default/apps