Snapshot hands on lab Run the following commands with Powershell (aws cli installation required)

Init variable

$keyName = "tuannd67"
$sgGroupId = "sg-05306f6795fe2025b"
$subnetId = "subnet-061a0f7fde133b9b8"
$Server1Name = "group4-svr1"

Requirements

Server Type Server Hostname IP address Specs
Master master 192.168.1.200/24 RAM: 4G, 2vCPU
Worker worker1 192.168.1.201/24 RAM: 2G, 1vCPU
Worker worker2 192.168.1.202/24 RAM: 2G, 1vCPU

1. CREATE EC2 SERVER (MASTER/WORKER NODES)

NOTE: Using aws cli on poweshell

1.1. Init variable

$keyName = "tuannd67"

$sgGroupId = "sg-05306f6795fe2025b"
$subnet1Id = "subnet-061a0f7fde133b9b8"

$Server1Name = "tuannd-k8s-master"
$Server2Name = "tuannd-k8s-worker1"
$Server3Name = "tuannd-k8s-w...

Cài đặt docker swarm visualizer

docker run -it -d -p 8080:8080 -v /var/run/docker.sock:/var/run/docker.sock dockersamples/visualizer

Truy cập docker swarm visualizer theo địa chỉ http://master-node-ip:8080