Mod 9 Containers
Mod 9 Containers
Module 9: Containers
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Poll question What percentage of your workloads run on
containers?
B. 10–50 percent
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 2
Module overview
• Business requests
• Microservices
• Containers
• Container services
• Present solutions
• Knowledge check
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 3
Business requests The compute operations manager wants to know:
• How can we make components of our
applications more independent so changes in
one service will not affect any other?
• What are the benefits of using containers for our
compute needs?
• What options do we have for managing
containerized applications in the cloud?
Compute Operations
Manager
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 4
Microservices
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Loose coupling
Elastic
Web servers Decoupled with a
Load
tightly coupled to load balancer Balancing
application servers
Application Application
servers servers
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 6
Microservices
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 7
Containers
“What are the benefits of using containers for our compute needs?”
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Containers
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 11
Containers and microservices
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 12
Levels of abstraction and virtualization
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 13
Containers on AWS
Containers on Amazon Containers with an
EC2 orchestration tool
• Running containers
directly on Amazon
EC2 requires you to
manage scaling,
connectivity, and
maintenance.
• Using an orchestration
tool helps manage:
• Scheduling
• Placement
• Networking
• Monitoring
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 14
Container services
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Running containers on AWS
Amazon Elastic Container Amazon Elastic Amazon Elastic AWS Fargate Amazon EC2
Registry (Amazon ECR) Kubernetes Service Container Service
(Amazon EKS) (Amazon ECS)
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 16
Amazon ECR
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 17
Amazon ECS orchestration
Managed container
orchestration service
tightly integrated with
AWS
• Pulls images from
your repositories
• ECS services scale
service capacity by
managing container
count
• ECS clusters scale
hosting capacity
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 18
Amazon ECS features
Amazon ECS
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 20
Amazon EKS
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 21
Amazon EKS solutions
Fargate
Deploy serverless
containers.
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 22
AWS Fargate
Amazon ECS
or
AWS Fargate
Launch containers Manage containers
Build a container Launch containers,
image. Fargate runs your Amazon ECS scales
Amazon EKS and Fargate manages containers for your applications and
all of the underlying you. manages your
Define the images container containers for
and resources infrastructure. availability.
needed for your
app.
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 24
Choosing AWS container services
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 25
Review
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Present Consider how you would answer the
solutions following:
• How can we make components of our
applications more independent so changes in
one service will not affect any other?
• What are the benefits of using containers for our
compute needs?
• What options do we have for managing
containerized applications in the cloud?
Compute Operations
Manager
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 31
Module review
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 32
Knowledge check
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
33
Knowledge check question 1
A Loosely coupled
B Redundant
D Tightly integrated
E Interdependent components
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 34
Knowledge check question 1 and answer
A
correct
Loosely coupled
B Redundant
C
correct
Autonomous and independent
E Interdependent components
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 35
Knowledge check question 2
B Requires a hypervisor
C Automatic
D Repeatable
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 36
Knowledge check question 2 and answer
A
correct
Portable and scalable
B Requires a hypervisor
C Automatic
D
correct
Repeatable
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 37
Knowledge check question 3
A A cluster
B Pods
C EBS volumes
D Amazon S3
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 38
Knowledge check question 3 and answer
A
correct
A cluster
B Pods
C EBS volumes
D Amazon S3
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 39
Knowledge check question 4
Why would you choose to deploy your containers to AWS Fargate over Amazon EC2?
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 40
Knowledge check question 4 and answer
Why would you choose to deploy your containers to AWS Fargate over Amazon EC2?
B
correct
To avoid manual infrastructure updates
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 41
End of Module 9
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. 42