This shows you the differences between two versions of the page.
moby:backend:08 [2020/08/16 15:15] alexandru.hogea |
moby:backend:08 [2020/08/16 15:17] (current) alexandru.hogea [Exercitii] |
||
---|---|---|---|
Line 28: | Line 28: | ||
<note tip>Comanda de init va genera 2 comenzi pe care va trebui sa le folositi sa introduceti alte noduri in cluster. Una este pt worker, alta este pt manager</note> | <note tip>Comanda de init va genera 2 comenzi pe care va trebui sa le folositi sa introduceti alte noduri in cluster. Una este pt worker, alta este pt manager</note> | ||
+ | Pentru a adauga alte masini la cluster, este nevoie sa folositi comenzile generate atunci cand ati dat **init**. Atentie, ele sunt diferite in functie de worker sau manager | ||
+ | |||
+ | Pentru a vedea cate noduri aveti in cluster, puteti rula comanda | ||
+ | <code bash> | ||
+ | docker node ls | ||
+ | </code> | ||
+ | |||
+ | de pe un nod manager | ||
=== Servicii Docker === | === Servicii Docker === | ||
Line 66: | Line 74: | ||
=== Portainer === | === Portainer === | ||
- | Portainer este un utilitar foarte bun de manangement al unui cluster de Docker Swarm. Se poate porni folosind [[https://portainer.readthedocs.io/en/stable/deployment.html#inside-a-swarm-cluster|scriptul oficial]]\ | + | Portainer este un utilitar foarte bun de manangement al unui cluster de Docker Swarm. Se poate porni folosind [[https://portainer.readthedocs.io/en/stable/deployment.html#inside-a-swarm-cluster|scriptul oficial]] |
Line 78: | Line 86: | ||
- Pe masina **manager** trageti monorepo-ul si lansati in executie stiva de servicii. Denumiti stiva de servicii mobyworkshop-testing | - Pe masina **manager** trageti monorepo-ul si lansati in executie stiva de servicii. Denumiti stiva de servicii mobyworkshop-testing | ||
- Testati cu Postman | - Testati cu Postman | ||
+ | - Puneti Portainer pe cluster |