Skip to content

Instantly share code, notes, and snippets.

@megastef
Last active August 29, 2015 14:23
Show Gist options
  • Save megastef/ee7e0bc0f258ed0c140a to your computer and use it in GitHub Desktop.
Save megastef/ee7e0bc0f258ed0c140a to your computer and use it in GitHub Desktop.
cloud init
#cloud-config
coreos:
etcd:
# generate a new token for each unique cluster from https://discovery.etcd.io/new?size=3
# specify the initial size of your cluster with ?size=X
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
etcd-servers: http://$private_ipv4:4001
units:
- name: etcd.service
command: start
- name: fleet.service
command: start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment