Hi everyone
And welcome back to our blog article.
And today we are gonna be talking about container services on AWS.
What will be Covered in this short article
- what are containers
- Compute options on AWS
- what are container orchestrators
- How ECS works
- How EKS works
- and finally AWS ECR
Link to video on Youtube: https://youtu.be/PUZfZaA21fI
Connect with me on Linked: www.linkedin.com/in/prosper-agada-3a4016241
Don't forget to drop your reactions and feedback.
Containers are like tiny boxes we use for packing our application and everything it needs, including your dependencies and libraries.
This makes our application easier and lightweight to deploy on platforms like AWS, google, or Azure.
Docker and containers can be used for the containerization of your application,
Docker is the most popular in the market.
AWS has two computing infrastructure options for deploying containers.
- EC2
- Fargate
Ec2 - is a self-managed computing service,
This means you have some responsibilities in managing the infrastructure yourself. This might include installing the container runtime and deploying your application container on it.
While Fargate is a fully managed compute service on aws, aws are responsible for managing everything for you
all you have to do is deploy your application.. this is called serverless computing
Depending on your workload and demands you can choose between these two options,
if you want to handle the installation and management yourself, Then ec2 is the best option for running your workload,
But if you want to abstract the infrastructure management and focus more on development, then Fargate would be the best option for your workload.
when your applications grow, the number of containers will increase as well, as some microservice applications can. Range from 100s to 100000s containers.. managing this yourself might become tasking.
Some problems may arise like;
- How do you know when a container is down
- How to schedule another task for the cluster
- How to LoadBalance
- How to autoscale
- How to allocate the right resources in your cluster and so on..
Management might become hard and messy, that is why we need a container orchestrator..
We all know KUBERNETES, as the most popular container orchestrator tool in the market..
We also have other tools like
- Docker swarm
- Nomad
- Apache Mesos
- and AWS ECS
ECS means elastic container service..
it is an owned fully managed container orchestration service.
How does it work?
it comes with a control plan with the control tools installed and a dashboard
with it, you can control a fleet of instances, called the worker's node
the worker will have the runtime installed alongside other worker processes.
The worker node can be your EC2 instance which you will have access to manage yourself or Fargate which is serverless which is managed by AWS..
you can also choose a blend of both..
ex means elastic Kubernetes service..
if you love using Kubernetes, EKS is the best option for you, EKS is AWS managed Kubernetes service.
It is used for container orchestration.
How does EKS work?
it comes with a control plane with the whole control tools pre-installed, and with that,
You can create a cluster of instances
And deploy your application using KUBECTL..
the instance can be ec2 which is self-managed or fargate which is serverless.
ECR means elastic container registry
this is AWS managed private container registry.. similar to what we have on the docker hub.
You can push images to ECR and pull them into your ECS or EKS clusters seamlessly.
One of the advantages includes..
- Seamless integration. since all these are under aws ecosystem, it integrates seamlessly with other services like;
- The VPC
- Elastic LoadBalancer
- IAM and so on..
Some key takeaways..
- Container is like an envelope for packing our applications with all it needs to run, including the (dependencies and libraries).
- Ec2 is a self-managed compute instance offered by AWS
- Fargate is a serverless compute instance offered by AWS
- Container orchestrators are used for handling the management of multiple containers, like load balancing, scheduling tasks, resource allocation, autoscaling, and so on.
- ECS is AWS owned managed container orchestration service
- EKS is AWS managed Kubernetes orchestration service
- finally, ECR is a fully managed container registry
Ready to Take Your DevOps Skills to the Next Level? 🚀
If you're excited about mastering AWS container services and beyond, join our 6-month DevOps Bootcamp! Perfect for beginners and pros alike, this boot camp covers everything from fundamental DevOps principles to hands-on experience with CI/CD, AWS, Docker, Kubernetes, Automation, Monitoring, and more.
👉 Sign up now and start your journey towards becoming a certified DevOps professional!
prosperagada01@gmail.com
agasglobaltech.com
Thank you and see you next time.
Top comments (0)