Docker Cookbook


ELB: Creating a Dynamic Load-Balancer with Confd and Registrator | 313



Download 6,31 Mb.
Pdf ko'rish
bet243/260
Sana21.04.2022
Hajmi6,31 Mb.
#570749
1   ...   239   240   241   242   243   244   245   246   ...   260
Bog'liq
Docker Cookbook

10.3 ELB: Creating a Dynamic Load-Balancer with Confd and Registrator | 313


$ git clone https://github.com/how2dock/dockbook.git
$ cd docbook/ch10/confd
$ vagrant up
$ vagrant ssh
You will have all the images downloaded and ready to go:
$ docker images
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
progrium/consul latest e66fb6787628 10 days ago 69.43 MB
nginx latest 319d2015d149 3 weeks ago 132.8 MB
runseb/hostname latest 7c9d1ddd2ceb 3 months ago 349.3 MB
gliderlabs/registrator latest b1c29d1a74a9 4 months ago 11.79 MB
And the 
confd
configuration files will be already set in 
/etc/confd/conf.d/config.toml
and 
/etc/confd/templates/config.conf.tmp
.
Just start the containers:
$ docker run -d -p 8400:8400 -p 8500:8500 -p 8600:53/udp
-h cookbook progrium/consul -server
-bootstrap -ui-dir /ui
$ docker run -d -v /var/run/docker.sock:/tmp/docker.sock
-h 192.168.33.10 gliderlabs/registrator
-ip 192.168.33.10 consul://192.168.33.10:8500/elb
$ docker run -d -p 80:80 -v /home/vagrant/nginx.conf:/etc/nginx/nginx.conf
--name elb nginx
$ docker run -d -p 5001:5000 runseb/hostname
$ docker run -d -p 5002:5000 runseb/hostname
You can start those containers via Docker Compose (see 
Recipe
7.1
).
And run 
confd
:
$ ./confd -backend consul -interval 5 -node 192.168.33.10:8500
See Also
• Quick Start guide for 
confd
314 | Chapter 10: Application Use Cases


10.4 DATA: Building an S3-Compatible Object Store with
Cassandra on Kubernetes
Problem
You would like to build your own 
S3-like
 object store.

Download 6,31 Mb.

Do'stlaringiz bilan baham:
1   ...   239   240   241   242   243   244   245   246   ...   260




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish