Skip to content

Instantly share code, notes, and snippets.

@ianblenke
Created February 13, 2015 21:07
Show Gist options
  • Save ianblenke/8aac408c3096a5256998 to your computer and use it in GitHub Desktop.
Save ianblenke/8aac408c3096a5256998 to your computer and use it in GitHub Desktop.
Find the CoreOS etcd leader
docker pull realguess/jq > /dev/null 2>&1 ; curl -sL http://127.0.0.1:7001/v2/admin/machines | docker run -i realguess/jq jq 'map(select(.state == "leader")) | .[].clientURL'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment