Amazon ECS manages containers using tasks & services
A task is a set of one or more containers defined in a task definition. ECS runs these tasks on servers (ec2) or without servers (Fargate). A service keeps the right number of tasks running & restarts them if they stop.
ECS runs,watches, & restarts containers to keep apps working smoothly
EC2 Launch type:
Runs containers on user managed ec2 instances. Full control over the servers, networking & scaling
Fargate Launch type:
Runs containers without managing servers. AWS handles the infrastructure, making it serverless & easier to scale
The control plane in kubernetes is responsible for managing the entire cluster.
It decides what runs where (scheduling containers)
Keeps track of the state of the cluster
Makes sure the system matches the desired configuration
Handles API requests, scaling & updates
Kubernetes is a tool that helps run & manage many containers easily. It was developed by Google to handle large numbers of containers, just like they did inside their company. It helps with tasks like starting containers, restarting them if they fail & spreading them across servers.
It is a cloud-based container image repository provided by docker
Roles:
Stores container images - Developers can push & pull docker images
Provides public images - Offers ready to use images like Ngnix, MySQL
Enables sharing - Users can share images easily across systems
Supports automation - Allows automated builds & triggers when code changes