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