Skip to content

Instantly share code, notes, and snippets.

@garethrees
Last active August 29, 2015 13:56
Show Gist options
  • Save garethrees/9052310 to your computer and use it in GitHub Desktop.
Save garethrees/9052310 to your computer and use it in GitHub Desktop.
CoreOS Cluster
core@core-01 ~ $ etcd -addr 192.168.65.101:4001 -bind-addr 0.0.0.0 -peer-addr 192.168.65.101:7001 -peer-bind-addr 0.0.0.0 -data-dir machines/machine1 -name machine1
core@core-02 ~ $ etcd -addr 192.168.65.102:4001 -bind-addr 0.0.0.0 -peer-addr 192.168.65.102:7001 -peer-bind-addr 0.0.0.0 -data-dir machines/machine2 -name machine2 -peers 192.168.65.101:7001,192.168.65.103:7001
core@core-03 ~ $ etcd -addr 192.168.65.103:4001 -bind-addr 0.0.0.0 -peer-addr 192.168.65.103:7001 -peer-bind-addr 0.0.0.0 -data-dir machines/machine3 -name machine3 -peers 192.168.65.101:7001,192.168.65.102:7001
$ curl -L http://192.168.65.101:4001/v2/machines
http://192.168.65.101:4001, http://192.168.65.102:4001, http://192.168.65.103:4001
$ curl -L http://192.168.65.101:4001/v2/leader
http://192.168.65.101:7001
@garethrees
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment