Skip to content

Instantly share code, notes, and snippets.

@russmckendrick
Last active August 29, 2015 14:06
Show Gist options
  • Save russmckendrick/6e6937764126cc7c8ce9 to your computer and use it in GitHub Desktop.
Save russmckendrick/6e6937764126cc7c8ce9 to your computer and use it in GitHub Desktop.
Install etcd & fleetctrl on a mac

Grab an etcd token;

curl -w "\n" https://discovery.etcd.io/new
https://discovery.etcd.io/<token>
#cloud-config

coreos:
  etcd:
    # generate a new token for each unique cluster from https://discovery.etcd.io/new
    discovery: https://discovery.etcd.io/<token>
    # multi-region deployments, multi-cloud deployments, and droplets without
    # private networking need to use $public_ipv4
    addr: $private_ipv4:4001
    peer-addr: $private_ipv4:7001
  fleet:
    public-ip: $private_ipv4   # used for fleetctl ssh command
  units:
    - name: etcd.service
      command: start
    - name: fleet.service
      command: start
brew install go etcdctl
git clone https://github.com/coreos/fleet.git && cd fleet && ./build
mv bin/fleetctl /usr/local/bin/
export FLEETCTL_TUNNEL=<one of your machines>
ssh-add
fleetctl list-machines
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment