-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-swarm-
More file actions
56 lines (37 loc) · 1.43 KB
/
docker-swarm-
File metadata and controls
56 lines (37 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
part 3
1. create 3 aws instances named as follows(hostname too)
- manager
- node1
- node2
2. initialise docker swarm on the manager instanse
3. add node1 & node2 instances to the swarm as worker nodes
4. create a new overlay network named web-network
5. create a service to run on the swarm with following config
- set name of the service as srv1
- publish the port as *:8000->80
- use web-network for the service as network
- use mitrasonu/dsapp:1 image
- replicas 3
- update existing srv1 to image mitrasonu/dsapp:2
6. create a service to run on the swarm with following config
- set name of the service as srv2
- use web-network for the service as network
- publish the port as *:8080->80
- configure service to only run on node2
- limit RAM usage to 200MB
- limit CPUs ot .3
- use mitrasonu/dsapp:1 image
- replicas 2
7. create a new aws instance named manager2(hostname too)
8. join manager2 to the swarm as a manager node
9. scale service srv1 to 6
10. update availability of node2 to pause
11. scale service srv2 to 4
12. update availability of manager to drain
13. create a new overlay network named web-network2
14. create a service (global ) to run on the swarm with following config
- set name of the service as gsrv
- publish the port as *:8090->80
- use web-network2 for the service as network
- use mitrasonu/dsapp:1 image
15. Monitor Docker Swarm Cluster using Docker Swarm Visualizer tool