Docker for the Absolute Beginner - Hands On - DevOps | Udemy
Container Orchestration is used to host multiple containers over multiple hosts by using scripts and codes.
- Some solution scales containers automatically and even scale hosts
Famous container orchestration solutions:
- Docker Swarm
- Kubernetes
- Mesos
Docker Swarm
Distributes containers over many hosts for higher availability and load balancing
In order to set up a docker swarm, one of the hosts must be a swarm manager while the others are workers.
- Running docker swarm init in the swarm manager starts docker swarm and provides instructions to set up other workers
docker service create --replicas=[number of containers]: runs determined amount of containers distributed across worker nodes
Kubernetes
kubectl run --replicas=[number of containers]: runs replica of container across multiple nodes
- kubectl scale: scales container by a determined amount
Kubernetes can automatically scale up and down based on the load.
- Allows rolling back
- Various authentication methods
Nodes are grouped by cluster and it is controlled by the master node.
'DevOps > Docker' 카테고리의 다른 글
[Docker 배우기] Section 8. Docker on Mac & Windows (1) | 2023.12.21 |
---|---|
[Docker 배우기] Section 7. Docker Engine, Storage, and Networking (0) | 2023.12.21 |
[Docker 배우기] Section 6. Docker Registry (0) | 2023.12.21 |
[Docker 배우기] Section 5. Docker Compose (0) | 2023.12.21 |
[Docker 배우기] Section 4. Docker Images (0) | 2023.12.21 |