Vagrant: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Thomas (Diskussion | Beiträge) |
Thomas (Diskussion | Beiträge) |
||
| Zeile 8: | Zeile 8: | ||
*[https://coreos.com/docs/running-coreos/platforms/vagrant/ coreos] | *[https://coreos.com/docs/running-coreos/platforms/vagrant/ coreos] | ||
*[[coreos cluster]] | *[[coreos cluster]] | ||
| − | + | *[[core-os]] | |
=setting a cluster= | =setting a cluster= | ||
*curl https://discovery.etcd.io/new?size=3 | *curl https://discovery.etcd.io/new?size=3 | ||
Version vom 22. April 2015, 16:25 Uhr
install
systems
setting a cluster
After running this command you will get out a new private discovery URL that looks something like https://discovery.etcd.io/<token>. Take this token and put it in the relevant section of the user-data file using your favorite text editor. When you are done the top of the user-data file should look like this:
#cloud-config coreos: etcd: discovery: https://discovery.etcd.io/<token>
- eval `ssh-agent -s`
- ssh-add
- ssh-add ~/.vagrant.d/insecure_private_key
- vagrant ssh core-01 -- -A
on the node
- core@core-01 ~ $ fleetctl list-machines
MACHINE IP METADATA 56ba03a8... 172.17.8.101 - 747c8c53... 172.17.8.102 - e82acbd2... 172.17.8.103 -
setting the first key
- core@core-01 ~ $ etcdctl set first-etcd-key "Hello World"
Hello World
getting the first key from the other machines
- core@core-01 ~ $ fleetctl ssh e82acbd2 etcdctl get first-etcd-key
Hello World
- core@core-01 ~ $ fleetctl ssh 747c8c53 etcdctl get first-etcd-key
Hello World