together. # When nginx1 is stopped, this unit will be stopped too. BindsTo=nginx1.service [Service] ExecStart=/bin/sh -c "while true; do etcdctl set /services/website/nginx1 \ '{ \"host\": \"%H\", \"port\": 8080, \"version\": \"52c7248a14\" }' \ --ttl 60;sleep 45;done" ExecStop=/usr/bin/etcdctl delete /services/website/nginx1 [X-Fleet] # This unit will always be colocated with nginx1.service MachineOf=nginx1.service Zie$'Run$a$Simple$Sidekick'$en$service4discovery.md.
container met Demo applicatie Legenda CoreOS-1 CoreOS-2 CoreOS-3 De Vu Vu De De Vu etcd etcd etcd Verzoeken vanuit vulcand op CoreOS-1 Verzoeken vanuit vulcand op CoreOS-2 Verzoeken vanuit vulcand op CoreOS-3 demo-application.qahwah.io Docker container met Registrator
[email protected] 1f264d10.../10.133.191.84 active running [email protected] 1f264d10.../10.133.191.84 active running [email protected] 9b655596.../10.133.191.87 active running registrator-vulcand.service 1f264d10.../10.133.191.84 active running registrator-vulcand.service 9b655596.../10.133.191.87 active running registrator-vulcand.service e9436653.../10.133.191.90 active running vulcand.service 1f264d10.../10.133.191.84 active running vulcand.service 9b655596.../10.133.191.87 active running vulcand.service e9436653.../10.133.191.90 active running
""h@p:/ /10.133.191.84:49154/api/health De#container#wordt#uit#roula/e#genomen#na#een#falende#health#check: Mar 03 15:17:06 coreos-2.qahwah.io Health check demo-application-v0.2.0@1 (http://10.133.191.84:49154/health) result HTTP code 200 Mar 03 15:17:09 coreos-2.qahwah.io Health check demo-application-v0.2.0@1 (http://10.133.191.84:49154/health) result HTTP code 500