jjbuchan / docs

0 stars 0 forks source link

Querying Etcd #18

Open jjbuchan opened 3 years ago

jjbuchan commented 3 years ago
# Connect to the pod
kubectl exec -it etcd-0 sh

# View all keys
ETCDCTL_API=3 etcdctl get / --prefix --keys-only

# View the value of an individual key
ETCDCTL_API=3 etcdctl get /zones/expected/12345/jjbuchan_test/development:0

# View the values of many keys
ETCDCTL_API=3 etcdctl get /zones/active --prefix