Skip to content
This repository has been archived by the owner on Nov 26, 2017. It is now read-only.

roboll/disco

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

disco

for etcd discovery

about

disco is a tool to help with etcd dns discovery using autoscaling groups. Run disco on startup of machines in the group and it will update dns srv records to point to the instances to allow for dns discovery.

It currently supports aws autoscaling and route53 dns, but should be trivial to extend for other providers. See providers.

usage

disco accepts arguments for all etcd configuration parameters, and expects that hosts should be configured identically - particularly, that it uses the same port and client/peer settings on every host.

  -domain string
        domain name (default "etcd.local")
  -group string
        autoscaling group
  -port string
        port (default "2380")
  -region string
        aws region
  -ssl
        use ssl
  -ttl int
        record ttl (default 60)
  -value-type string
        value type - one of private-ip, public-ip, private-dns, public-dns
  -wait
        wait for propagation confirmation
  -zone string
        hosted zone id

aws usage

disco expects iam permissions to be in place, and relies on the default aws credentials chaining (it will take advantage of iam credentials automatically).