Skip to content

Instantly share code, notes, and snippets.

@motilevy
Created June 21, 2018 06:42
Show Gist options
  • Save motilevy/a892d9842208e36b7a1fe4f2084dd589 to your computer and use it in GitHub Desktop.
Save motilevy/a892d9842208e36b7a1fe4f2084dd589 to your computer and use it in GitHub Desktop.
### Get list of node ip's from consul
curl consul:8500/v1/catalog/nodes | jq -r ' .[] | select(.Node | contains("services")) | .TaggedAddresses.lan'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment