Skip to content

Instantly share code, notes, and snippets.

@gtirloni
Created Aug 12, 2017
Embed
What would you like to do?
LFS258 Notes

etcd

List all keys

ETCDCTL_API=3 etcdctl get / --prefix --keys-only

What used to be directories in etcd v2

ETCDCTL_API=3 etcdctl get / --prefix --keys-only | awk -F/ '{ printf("%s/%s\n", $2, $3); }'| sort | uniq

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment