Skip to content

Instantly share code, notes, and snippets.

@gtirloni
Created August 12, 2017 20:17
Show Gist options
  • Save gtirloni/d57cef8c8e62c73ba25502409a9158c7 to your computer and use it in GitHub Desktop.
Save gtirloni/d57cef8c8e62c73ba25502409a9158c7 to your computer and use it in GitHub Desktop.
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