ECS, Fargate, ECR, EKS Flashcards
What are 2 the uses cases for Docker?
microservices architecture
lift-and-shift apps from on- premises to the AWS cloud
What are the 4 AWS Docker Container Management??
ECS - Elastic Container Service
EKS - Elastic Kubernetes Service
Fargate
ECR - Elastic Container Registry
What are 2 Docker Image stores
Docker Hub
ECR - Elastic Container Registry
What are 2 ECS Launch Types?
EC2 Launch Type
Fargate Launch Type
Amazon ECS - Launch Type - you must provision & maintain the infrastructure
EC2 Launch Type
In Amazon ECS - EC2 Launch Type, who takes care of starting / stopping containers?
AWS
In Amazon ECS - EC2 Launch Type, Each EC2 Instance must run the ______________ to register in the ______________
ECS Agent
ECS Cluster
How to scale a Fargate LaunchType
just increase the number of tasks
Amazon ECS – LaunchType - You do not provision the infrastructure. It’s all Serverless
Fargate LaunchType
IAM Roles for ECS
* Used by the ECS agent ECS
* Makes API calls to ECS ser vice ECR
* Send container logs to CloudWatch Logs
* Pull Docker image from ECR
* Reference sensitive data in Secrets Manager or SSM Parameter Store
EC2 Instance Profile (EC2 Launch Type only)
IAM Roles for ECS
* Allows each task to have a specific role
* Use different roles for the different ECS Services you run
* Task Role is defined in the task definition
ECS Task Role
Which 3 types of Load Balancers are supported with ECS?
Application Load Balancer
Network Load Balancer
Classic Load Balancer
Amazon ECS – Load Balancer Integrations
supported and works for most use cases
Application Load Balancer
Amazon ECS – Load Balancer Integrations
recommended only for high throughput / high performance use cases, or to pair it with AWS Private Link
Network Load Balancer
Amazon ECS – Load Balancer Integrations
supported but not recommended (no advanced features – no Fargate)
Classic Load Balancer
Does EFS work for both EC2 and Fargate launch types?
YES
Tasks running in ________ AZ will share the same data in the EFS file system
ANY
Fargate + EFS =
Serverless
Amazon ECS – Data Volumes (EFS) use cases??
persistent multi-AZ shared storage for
your containers
Amazon S3 ___________ be mounted as a file system
cannot
What are 3 types of ECS Service Auto Scaling?
Target Tracking
Step Scaling
Scheduled Scaling
ECS Service Auto Scaling - scale based on target value for a specific CloudWatch metric
Target Tracking
ECS Service Auto Scaling - scale based on a specified CloudWatch Alarm
Step Scaling
ECS Service Auto Scaling - scale based on a specified date/time (predictable changes)
Scheduled Scaling
Is ECS Service Auto Scaling (task level) EQUAL TO EC2 Auto Scaling (EC2 instance level)
NO
Is Fargate Auto Scaling easier to setup???? If so, why?
YES (because Serverless)
What are the 3 metrics you can use when using AWS Application Auto Scaling??
- ECS Service Average CPU Utilization
- ECS Service Average Memory Utilization-Scale on RAM
- ALB Request Count Per Target–metric coming from the ALB
- Used to automatically provision and scale the infrastructure for your ECSTasks
- Capacity Provider paired with an Auto Scaling Group
- Add EC2 Instances when you’re missing capacity (CPU, RAM…)
ECS Cluster Capacity Provider
- Scale your ASG based on CPU Utilization
- Add EC2 instances over time
Auto Scaling Group Scaling
Does EKS support EC2 if you want to deploy worker nodes or Fargate to deploy serverless containers??
YES
What is the use case for EKS?
if your company is already using Kubernetes on-premises or in another cloud, and wants to migrate to AWS using Kubernetes
For multiple regions, deploy one EKS cluster __________?
per region
For EKS, How do you collect logs and metrics?
CloudWatch Container Insights
Amazon EKS – Node Types (3)
Managed Node Groups
Self-Managed Nodes
AWS Fargate
Amazon EKS – Node Types:
* Creates and manages Nodes (EC2 instances) for you
* Nodes are part of an ASG managed by EKS
* Supports On-Demand or Spot Instances
Managed Node Groups
Amazon EKS – Node Types:
* Nodes created by you and registered to the EKS cluster and managed by an ASG
* You can use prebuilt AMI - Amazon EKS Optimized AMI
* Supports On-Demand or Spot Instances
Self-Managed Nodes
Amazon EKS – Node Types:
* No maintenance required; no nodes managed
AWS Fargate
For Amazon EKS – Data Volumes, what do you need to specify on your EKS cluster??
StorageClass manifest
Amazon EKS – Data Volumes leverages _______
a Container Storage Interface (CSI) compliant driver
What are the 4 supported Data Volumes for EKS?
- Amazon EBS
- Amazon EFS (works with Fargate)
- Amazon FSx for Lustre
- Amazon FSx for NetApp ONTAP
- Fully managed service that makes it easy to deploy web applications and APIs at scale
- No infrastructure experience required
- Start with your source code or container image
- Automatically builds and deploy the web app
- Automatic scaling, highly available, load balancer, encryption
- VPC access support
- Connect to database, cache, and message queue services
AWS App Runner