Last active
August 29, 2015 13:56
-
-
Save garethrees/9052310 to your computer and use it in GitHub Desktop.
CoreOS Cluster
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Next