Study/Cloud

[ETCD 에서 Data 찾기]

nobang 2023. 2. 20. 10:40
728x90

엣씨디? ETCD 라는 key/value 형태의 database(?) 가 있다.

우선 설치되어있는 서버에서
export ETCDCTL_API=3

으로 버전을 지정한다음
etcdctl get --prefix / 를 하면 모든 keyvalue 가 나온다.
나의 경우 너무 많아서

etcdctl get --prefix / >> etcddata.txt 로 파일로 바꾸어서 확인했다.

추가 명령들

export ETCDCTL_API=3
etcdctl get / --prefix --keys-only
etcdctl get "/" --prefix --keys-only
ETCD_CTL=3 etcdctl get / --prefix --keys-only
ETCD_CTL=3 etcdctl --endpoints=http://localhost:2379 get / --prefix --keys-only
ETCD_CTL=3 etcdctl --endpoints=http://localhost:2379 get  --prefix --keys-only
ETCD_CTL=3 etcdctl --endpoints=http://localhost:2379 get --prefix --keys-only
ETCD_CTL=3 etcdctl --endpoints=http://localhost:2379 get --prefix --keys-only --sort
ETCD_CTL=3 etcdctl --endpoints=http://localhost:2379 get --prefix="" --keys-only --sort
ETCD_CTL=3 etcdctl --endpoints=http://localhost:2379 get --keys-only --sort
ETCD_CTL=3 etcdctl --endpoints=http://localhost:2379 get --keys-only

 

728x90