SlideShare a Scribd company logo
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Build with Containers
Seoul, South Korea
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Your presenters
Omar Lari,
Container Service
• Held engineering and leaderships roles at various
silicon valley startups, enterprise organization and
consulting firms
• 3 years at AWS – Solutions Architect specializing in
container adoption and container services business
development
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Excited to be in South Korea!
• My first time here
• Suggestions for food, sights and soju drinking tips
are welcome J
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Today’s Agenda
09:30 Welcome
09:35 Building with Kubernetes on AWS
10:20 Amazon EKS Hands-On Lab
12:45 Lunch
13:15 Partner Presentation
13:45 Building with Fargate and Amazon ECS
14:30 Fargate Hands-On Lab
16:30 Closing Discussion
17:00 End
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Important information
• Bathrooms
• Slides will be provided after the event via slideshare
• You will receive a survey after the event in your email. It only
takes 3 minutes to complete! Let us know how we did and what to
improve.
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Containers on AWS
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Container Services Landscape
MANAGEMENT
Deployment, Scheduling, Scaling &
Management of containerized
applications
HOSTING
Where the containers run
Amazon Elastic
Container Service
Amazon Elastic
Container Service
for Kubernetes
Amazon EC2 AWS Fargate
Higher Level Services
Application Management
Amazon Elastic
Container Registry
Compute
Where the containers run
Spot Instance GPU Instance
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Omar Lari, Container Services
March 4th, 2019
Kubernetes on AWS
Open source container management
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Agenda
• Why containers?
• What is Kubernetes?
• Key concepts
• Running Kubernetes on AWS
• Demonstration
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Why containers? FizzBuzz!
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Application environment components
Runtime Engine Code
Dependencies Configuration
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Local Laptop Staging / QA Production On-Premises
Different environments
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Local Laptop Staging / QA Production On-Prem
It worked on my machine, why not in
prod?
v6.0.0 v7.0.0 v4.0.0 v7.0.0
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Containers to the rescue
Runtime Engine
Code
Dependencies
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Docker
Lightweight container virtualization platform.
Tools to manage and deploy your applications.
Licensed under the Apache 2.0 license.
First released March 2013
Built by Docker, Inc.
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Docker Image
Read only image that is used as a
template to launch a container.
Start from base images that have
your dependencies, add your custom
code.
Docker file for easy, reproducible
builds.
bootfs
kernel
Base image
Image
Image
W
ritable
Container
add
ngix
add
nodejs
U
buntu
References
parent
image
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Local Laptop Staging / QA Production On-Prem
Four environments, same container
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Container Implementation
Server (Host)
Hypervisor
Guest OS
Bins/Libs
App 2
Guest OS
Bins/Libs
App 3
Guest OS
Bins/Libs
App 1
Server (Host)
Hypervisor
Guest OS
App 2
Guest OS
App 3
Guest OS
App 1
Guest OS / Docker Engine
Bins/Libs Bins/LibsBins/Libs
Server (Host)
Operating System (OS)
Guest OS Guest OSGuest OS Libraries
App 1, 2, 3
Bare Metal Virtual Machine Containers
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
But how do we make this work at scale?
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
We need to
• start, stop, and monitor lots of containers running on
lots of hosts
• decide when and where to start or stop containers
• control our hosts and monitor their status
• manage rollouts of new code (containers) to our hosts
• manage how traffic flows to containers and how
requests are routed
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
aka ‘k8s’
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Container Services Landscape
MANAGEMENT
Deployment, Scheduling,
Scaling & Management
HOSTING
Where the containers run
Amazon EC2
IMAGE REGISTRY
Container Image Repository
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Open source container
management platform
Helps you run
containers at scale
Gives you primitives
for building
modern applications
What is Kubernetes?
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Containers on Hosts
A host is a server – e.g. EC2 virtual machine.
We run these hosts together as a cluster.
Web App
To start let’s run a 3 copies of our web
app across our cluster of EC2 hosts.
3x
Our simple example web application is
already containerized.
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Run n containers
We define a deployment and set the replicas
to 3 for our container.
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Scale up!
Need more containers?
Update the replication set!
The new containers are started on the cluster.
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Untimely termination
Oh no! Our host has died!
Kubernetes notices only 3 of the 5
containers are running and starts 2
additional containers on the remaining
hosts.
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Containers IRL
In production, we want to do more complex
things like,
• Run a service to route traffic to a set of
running containers
• Manage the deployment of containers to
our cluster
• Run multiple containers together and
specify how they run
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Pods
• Define how your containers should run
• Allow you to run 1 to n containers together
Containers in pods have
• Shared IP space
• Shared volumes
• Shared scaling (you scale pods not
individual containers)
When containers are started on our cluster,
they are always part of a pod.
(even if it’s a pod of 1)
Container A
Container B
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Services
One of the ways traffic gets to your pods.
• Internal IP addresses are assigned to each pod
• Services are connected to pods
and use labels to reference which pod
to route requests to
containers.
container
containers
containers
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Deployments
Services work with deployments to manage
updating or adding new pods.
Let’s say we want to deploy a new version of our
web app as a ‘canary’ and see how it handles
traffic.
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Deployments
The deployment creates a new replication set
for our new pod version.
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Deployments
Only after the new pod returns a healthy
status to the service do we add more new
pods and scale down the old.
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Running Kubernetes on AWS
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
51%of Kubernetes workloads
run on AWS today
— Cloud Native Computing Foundation
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Elastic Container Service for Kubernetes
Managed K8s control plane — highly available API server and etcd nodes
aws eks create-cluster 
--name <> 
--role-arn <> 
--resources-vpc-config <> 
...
Bring your own EC2 worker nodes
Core tenets
• Platform for enterprises to run production-grade workloads
• Provides a native and upstream Kubernetes experience – Kubernetes certified
• Seamless integration with AWS services
• Actively contributes to the Kubernetes project
APIs
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
eksctl – eks the easy way
CLI to provision and managed your EKS cluster
apiVersion: eksctl.io/v1alpha4
kind: ClusterConfig
metadata:
name: demo
region: ap-northeast-2
version: '1.11’
nodeGroups:
...
Quickly get started without worrying about VPC, IAM and Node design
eksctl create cluster
Or define a config file for more detailed configuration control
eksctl create cluster –f config.yaml
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
EKS Customers
C r e a t e E K S c l u s t e r
P r o v i s i o n w o r k e r n o d e s
L a u n c h a d d - o n s
L a u n c h w o r k l o a d s
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
EKS – Kubernetes control plane
C r e a t e c l u s t e r
C r e a t e H A c o n t r o l
p l a n e
I A M i n t e g r a t i o n
C e r t i f i c a t e
m a n a g e m e n t
S e t u p L B
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
EC2 Worker
Nodes
EKS
Control
Plane
Customer VPC EKS VPC
Network Load
Balancer
ENI
API Access
Kubectl
Exec/Logs
TLS
Static IPs
ENI Attachment
Autoscaling Group
EKS Architecture
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Native VPC networking
with CNI plugin
Pods have the same VPC
address inside the pod
as on the VPC
Simple, secure
networking
Open source and
on GitHub
…{ }
https://github.com/aws/amazon-vpc-cni-k8s
Container Networking Interface (CNI)
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
VPC CNI plugin
• Bridge between the K8s land – AWS VPC
• AWS Routable IPs
• Thin layer – no performance impact
• Pod IP ENI secondary IP
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS IAM Authenticator for Kubernetes
• AWS native access management
• Built in collaboration with Heptio
• Kubectl and worker nodes
• Works with Kubernetes Role-Based Authentication (RBAC)
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
IAM roles for Kubectl
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Tracing
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
CICD for Kubernetes Apps
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
CI/CD of apps on Kubernetes—choices
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Jenkins
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
EKS Deployment Pipeline
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Questions?
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Start at https://eksworkshop.com

More Related Content

What's hot (20)

PDF
AWS で構築するコンピュータビジョンアプリケーション
Amazon Web Services Japan
 
PDF
20191023 AWS Black Belt Online Seminar Amazon EMR
Amazon Web Services Japan
 
PDF
20191009 AWS Black Belt Online Seminar Amazon GameLift
Amazon Web Services Japan
 
PDF
신입 개발자가 스타트업에서 AWS로 살아남는 이야기 - 조용진, 모두의 캠퍼스 :: AWS Summit Seoul 2019
Amazon Web Services Korea
 
PDF
20191002 AWS Black Belt Online Seminar Amazon EC2 Auto Scaling and AWS Auto S...
Amazon Web Services Japan
 
PDF
마이크로서비스를 위한 App Mesh & Cloud Map - 김세호 솔루션즈 아키텍트, AWS :: AWS Summit Seoul 2019
Amazon Web Services Korea
 
PDF
e커머스 통합운영 자동화 사례 및 보안강화 방안 - 양수연 상무, 삼성SDS / 임선진 팀장, 삼성SDS :: AWS Summit Seou...
Amazon Web Services Korea
 
PDF
게임 고객사를 위한 ‘AWS 컨테이너 교육’ 자료 - 유재석 솔루션즈 아키텍트, AWS :: Gaming Immersion Day 201...
Amazon Web Services Korea
 
PDF
AWS Transit Gateway를 통한 Multi-VPC 아키텍처 패턴 - 강동환 솔루션즈 아키텍트, AWS :: AWS Summit ...
Amazon Web Services Korea
 
PDF
AWS Black Belt Online Seminar 2018 AWS Certificate Manager
Amazon Web Services Japan
 
PDF
RoboMaker로 DeepRacer 자율 주행차 만들기 :: 유정열 - AWS Community Day 2019
AWSKRUG - AWS한국사용자모임
 
PDF
Amazon SageMaker 推論エンドポイントを利用したアプリケーション開発
Amazon Web Services Japan
 
PDF
Service Mesh, 좀 더 쉽게 - AWS App Mesh :: 안주은 - AWS Community Day 2019
AWSKRUG - AWS한국사용자모임
 
PDF
20190731 Black Belt Online Seminar Amazon ECS Deep Dive
Amazon Web Services Japan
 
PDF
AWS 미디어 서비스를 이용한 글로벌 라이브 스트리밍 서비스 구축 - 황윤상 솔루션즈 아키텍트, AWS / 조용진 솔루션즈 아키텍트, AW...
Amazon Web Services Korea
 
PDF
20190306 AWS Black Belt Online Seminar Amazon EC2 スポットインスタンス
Amazon Web Services Japan
 
PDF
AWS Lambda@Edge でできること!
Amazon Web Services Japan
 
PPTX
2019-11-05 AWS Pretoria Meetup - Setting up your first environment and adding...
Cobus Bernard
 
PDF
Serverless ASP.NET Core 2.0 Applicationsを作ってみた
Amazon Web Services Japan
 
PPTX
Secure and Fast microVM for Serverless Computing using Firecracker
Arun Gupta
 
AWS で構築するコンピュータビジョンアプリケーション
Amazon Web Services Japan
 
20191023 AWS Black Belt Online Seminar Amazon EMR
Amazon Web Services Japan
 
20191009 AWS Black Belt Online Seminar Amazon GameLift
Amazon Web Services Japan
 
신입 개발자가 스타트업에서 AWS로 살아남는 이야기 - 조용진, 모두의 캠퍼스 :: AWS Summit Seoul 2019
Amazon Web Services Korea
 
20191002 AWS Black Belt Online Seminar Amazon EC2 Auto Scaling and AWS Auto S...
Amazon Web Services Japan
 
마이크로서비스를 위한 App Mesh & Cloud Map - 김세호 솔루션즈 아키텍트, AWS :: AWS Summit Seoul 2019
Amazon Web Services Korea
 
e커머스 통합운영 자동화 사례 및 보안강화 방안 - 양수연 상무, 삼성SDS / 임선진 팀장, 삼성SDS :: AWS Summit Seou...
Amazon Web Services Korea
 
게임 고객사를 위한 ‘AWS 컨테이너 교육’ 자료 - 유재석 솔루션즈 아키텍트, AWS :: Gaming Immersion Day 201...
Amazon Web Services Korea
 
AWS Transit Gateway를 통한 Multi-VPC 아키텍처 패턴 - 강동환 솔루션즈 아키텍트, AWS :: AWS Summit ...
Amazon Web Services Korea
 
AWS Black Belt Online Seminar 2018 AWS Certificate Manager
Amazon Web Services Japan
 
RoboMaker로 DeepRacer 자율 주행차 만들기 :: 유정열 - AWS Community Day 2019
AWSKRUG - AWS한국사용자모임
 
Amazon SageMaker 推論エンドポイントを利用したアプリケーション開発
Amazon Web Services Japan
 
Service Mesh, 좀 더 쉽게 - AWS App Mesh :: 안주은 - AWS Community Day 2019
AWSKRUG - AWS한국사용자모임
 
20190731 Black Belt Online Seminar Amazon ECS Deep Dive
Amazon Web Services Japan
 
AWS 미디어 서비스를 이용한 글로벌 라이브 스트리밍 서비스 구축 - 황윤상 솔루션즈 아키텍트, AWS / 조용진 솔루션즈 아키텍트, AW...
Amazon Web Services Korea
 
20190306 AWS Black Belt Online Seminar Amazon EC2 スポットインスタンス
Amazon Web Services Japan
 
AWS Lambda@Edge でできること!
Amazon Web Services Japan
 
2019-11-05 AWS Pretoria Meetup - Setting up your first environment and adding...
Cobus Bernard
 
Serverless ASP.NET Core 2.0 Applicationsを作ってみた
Amazon Web Services Japan
 
Secure and Fast microVM for Serverless Computing using Firecracker
Arun Gupta
 

Similar to [AWS Container Service] Getting Started with Kubernetes on AWS (20)

PPTX
Amazon EKS: Getting Started
Tanya Seno
 
PPTX
Getting Started with Amazon EKS (Managed Kubernetes)
Tanya Seno
 
PDF
Builders' Day- Mastering Kubernetes on AWS
Amazon Web Services LATAM
 
PPTX
Amazon Elastic Container Service for Kubernetes (Amazon EKS) I AWS Dev Day 2018
AWS Germany
 
PDF
Kubernetes/ EKS - 김광영 (AWS 솔루션즈 아키텍트)
Amazon Web Services Korea
 
PPTX
AWS SSA Webinar 12 - Getting started on AWS with Containers
Cobus Bernard
 
PDF
Aws container services overview
Patricio Vazquez
 
PPTX
Containers State of the Union I AWS Dev Day 2018
AWS Germany
 
PDF
Introduction to EKS (AWS User Group Slovakia)
Vladimir Simek
 
PDF
[AWS Dev Day] 실습워크샵 | Amazon EKS 핸즈온 워크샵
Amazon Web Services Korea
 
PDF
kubernetes on awsjourneryssdddddddddddddd
RubyMallah
 
PPTX
Csa container-security-in-aws-dw
Cloud Security Alliance, UK chapter
 
PDF
EKS Workshop
AWS Germany
 
PPTX
Containers on AWS
AWS Riyadh User Group
 
PDF
Kubernetes on AWS
Grant Ellis
 
PDF
Kubernetes on AWS
Grant Ellis
 
PDF
Kubernetes on aws
Yousun Jeong
 
PPTX
KubernetSADASDASDASDSADASDASDASDASDes.pptx
MuhamedAhmed35
 
PDF
Docker clusters on AWS with Amazon ECS and Kubernetes
Julien SIMON
 
PDF
Orchestrating containers on AWS | AWS Summit Tel Aviv 2019
AWS Summits
 
Amazon EKS: Getting Started
Tanya Seno
 
Getting Started with Amazon EKS (Managed Kubernetes)
Tanya Seno
 
Builders' Day- Mastering Kubernetes on AWS
Amazon Web Services LATAM
 
Amazon Elastic Container Service for Kubernetes (Amazon EKS) I AWS Dev Day 2018
AWS Germany
 
Kubernetes/ EKS - 김광영 (AWS 솔루션즈 아키텍트)
Amazon Web Services Korea
 
AWS SSA Webinar 12 - Getting started on AWS with Containers
Cobus Bernard
 
Aws container services overview
Patricio Vazquez
 
Containers State of the Union I AWS Dev Day 2018
AWS Germany
 
Introduction to EKS (AWS User Group Slovakia)
Vladimir Simek
 
[AWS Dev Day] 실습워크샵 | Amazon EKS 핸즈온 워크샵
Amazon Web Services Korea
 
kubernetes on awsjourneryssdddddddddddddd
RubyMallah
 
Csa container-security-in-aws-dw
Cloud Security Alliance, UK chapter
 
EKS Workshop
AWS Germany
 
Containers on AWS
AWS Riyadh User Group
 
Kubernetes on AWS
Grant Ellis
 
Kubernetes on AWS
Grant Ellis
 
Kubernetes on aws
Yousun Jeong
 
KubernetSADASDASDASDSADASDASDASDASDes.pptx
MuhamedAhmed35
 
Docker clusters on AWS with Amazon ECS and Kubernetes
Julien SIMON
 
Orchestrating containers on AWS | AWS Summit Tel Aviv 2019
AWS Summits
 
Ad

More from Amazon Web Services Korea (20)

PDF
[D3T1S01] Gen AI를 위한 Amazon Aurora 활용 사례 방법
Amazon Web Services Korea
 
PDF
[D3T1S06] Neptune Analytics with Vector Similarity Search
Amazon Web Services Korea
 
PDF
[D3T1S03] Amazon DynamoDB design puzzlers
Amazon Web Services Korea
 
PDF
[D3T1S04] Aurora PostgreSQL performance monitoring and troubleshooting by use...
Amazon Web Services Korea
 
PDF
[D3T1S07] AWS S3 - 클라우드 환경에서 데이터베이스 보호하기
Amazon Web Services Korea
 
PDF
[D3T1S05] Aurora 혼합 구성 아키텍처를 사용하여 예상치 못한 트래픽 급증 대응하기
Amazon Web Services Korea
 
PDF
[D3T1S02] Aurora Limitless Database Introduction
Amazon Web Services Korea
 
PDF
[D3T2S01] Amazon Aurora MySQL 메이저 버전 업그레이드 및 Amazon B/G Deployments 실습
Amazon Web Services Korea
 
PDF
[D3T2S03] Data&AI Roadshow 2024 - Amazon DocumentDB 실습
Amazon Web Services Korea
 
PDF
AWS Modern Infra with Storage Roadshow 2023 - Day 2
Amazon Web Services Korea
 
PDF
AWS Modern Infra with Storage Roadshow 2023 - Day 1
Amazon Web Services Korea
 
PDF
사례로 알아보는 Database Migration Service : 데이터베이스 및 데이터 이관, 통합, 분리, 분석의 도구 - 발표자: ...
Amazon Web Services Korea
 
PDF
Amazon DocumentDB - Architecture 및 Best Practice (Level 200) - 발표자: 장동훈, Sr. ...
Amazon Web Services Korea
 
PDF
Amazon Elasticache - Fully managed, Redis & Memcached Compatible Service (Lev...
Amazon Web Services Korea
 
PDF
Internal Architecture of Amazon Aurora (Level 400) - 발표자: 정달영, APAC RDS Speci...
Amazon Web Services Korea
 
PDF
[Keynote] 슬기로운 AWS 데이터베이스 선택하기 - 발표자: 강민석, Korea Database SA Manager, WWSO, A...
Amazon Web Services Korea
 
PDF
Demystify Streaming on AWS - 발표자: 이종혁, Sr Analytics Specialist, WWSO, AWS :::...
Amazon Web Services Korea
 
PDF
Amazon EMR - Enhancements on Cost/Performance, Serverless - 발표자: 김기영, Sr Anal...
Amazon Web Services Korea
 
PDF
Amazon OpenSearch - Use Cases, Security/Observability, Serverless and Enhance...
Amazon Web Services Korea
 
PDF
Enabling Agility with Data Governance - 발표자: 김성연, Analytics Specialist, WWSO,...
Amazon Web Services Korea
 
[D3T1S01] Gen AI를 위한 Amazon Aurora 활용 사례 방법
Amazon Web Services Korea
 
[D3T1S06] Neptune Analytics with Vector Similarity Search
Amazon Web Services Korea
 
[D3T1S03] Amazon DynamoDB design puzzlers
Amazon Web Services Korea
 
[D3T1S04] Aurora PostgreSQL performance monitoring and troubleshooting by use...
Amazon Web Services Korea
 
[D3T1S07] AWS S3 - 클라우드 환경에서 데이터베이스 보호하기
Amazon Web Services Korea
 
[D3T1S05] Aurora 혼합 구성 아키텍처를 사용하여 예상치 못한 트래픽 급증 대응하기
Amazon Web Services Korea
 
[D3T1S02] Aurora Limitless Database Introduction
Amazon Web Services Korea
 
[D3T2S01] Amazon Aurora MySQL 메이저 버전 업그레이드 및 Amazon B/G Deployments 실습
Amazon Web Services Korea
 
[D3T2S03] Data&AI Roadshow 2024 - Amazon DocumentDB 실습
Amazon Web Services Korea
 
AWS Modern Infra with Storage Roadshow 2023 - Day 2
Amazon Web Services Korea
 
AWS Modern Infra with Storage Roadshow 2023 - Day 1
Amazon Web Services Korea
 
사례로 알아보는 Database Migration Service : 데이터베이스 및 데이터 이관, 통합, 분리, 분석의 도구 - 발표자: ...
Amazon Web Services Korea
 
Amazon DocumentDB - Architecture 및 Best Practice (Level 200) - 발표자: 장동훈, Sr. ...
Amazon Web Services Korea
 
Amazon Elasticache - Fully managed, Redis & Memcached Compatible Service (Lev...
Amazon Web Services Korea
 
Internal Architecture of Amazon Aurora (Level 400) - 발표자: 정달영, APAC RDS Speci...
Amazon Web Services Korea
 
[Keynote] 슬기로운 AWS 데이터베이스 선택하기 - 발표자: 강민석, Korea Database SA Manager, WWSO, A...
Amazon Web Services Korea
 
Demystify Streaming on AWS - 발표자: 이종혁, Sr Analytics Specialist, WWSO, AWS :::...
Amazon Web Services Korea
 
Amazon EMR - Enhancements on Cost/Performance, Serverless - 발표자: 김기영, Sr Anal...
Amazon Web Services Korea
 
Amazon OpenSearch - Use Cases, Security/Observability, Serverless and Enhance...
Amazon Web Services Korea
 
Enabling Agility with Data Governance - 발표자: 김성연, Analytics Specialist, WWSO,...
Amazon Web Services Korea
 
Ad

Recently uploaded (20)

PDF
Impact of IEEE Computer Society in Advancing Emerging Technologies including ...
Hironori Washizaki
 
PDF
Predicting the unpredictable: re-engineering recommendation algorithms for fr...
Speck&Tech
 
PPTX
✨Unleashing Collaboration: Salesforce Channels & Community Power in Patna!✨
SanjeetMishra29
 
PDF
CloudStack GPU Integration - Rohit Yadav
ShapeBlue
 
PDF
Apache CloudStack 201: Let's Design & Build an IaaS Cloud
ShapeBlue
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PDF
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
PDF
NewMind AI Journal - Weekly Chronicles - July'25 Week II
NewMind AI
 
PPTX
UiPath Academic Alliance Educator Panels: Session 2 - Business Analyst Content
DianaGray10
 
PDF
Human-centred design in online workplace learning and relationship to engagem...
Tracy Tang
 
PDF
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
PDF
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
PDF
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
PDF
Blockchain Transactions Explained For Everyone
CIFDAQ
 
PDF
Ampere Offers Energy-Efficient Future For AI And Cloud
ShapeBlue
 
PDF
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
PDF
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
PDF
TrustArc Webinar - Data Privacy Trends 2025: Mid-Year Insights & Program Stra...
TrustArc
 
PDF
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
PPTX
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
Impact of IEEE Computer Society in Advancing Emerging Technologies including ...
Hironori Washizaki
 
Predicting the unpredictable: re-engineering recommendation algorithms for fr...
Speck&Tech
 
✨Unleashing Collaboration: Salesforce Channels & Community Power in Patna!✨
SanjeetMishra29
 
CloudStack GPU Integration - Rohit Yadav
ShapeBlue
 
Apache CloudStack 201: Let's Design & Build an IaaS Cloud
ShapeBlue
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
NewMind AI Journal - Weekly Chronicles - July'25 Week II
NewMind AI
 
UiPath Academic Alliance Educator Panels: Session 2 - Business Analyst Content
DianaGray10
 
Human-centred design in online workplace learning and relationship to engagem...
Tracy Tang
 
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
Blockchain Transactions Explained For Everyone
CIFDAQ
 
Ampere Offers Energy-Efficient Future For AI And Cloud
ShapeBlue
 
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
TrustArc Webinar - Data Privacy Trends 2025: Mid-Year Insights & Program Stra...
TrustArc
 
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 

[AWS Container Service] Getting Started with Kubernetes on AWS

  • 1. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Build with Containers Seoul, South Korea
  • 2. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Your presenters Omar Lari, Container Service • Held engineering and leaderships roles at various silicon valley startups, enterprise organization and consulting firms • 3 years at AWS – Solutions Architect specializing in container adoption and container services business development
  • 3. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Excited to be in South Korea! • My first time here • Suggestions for food, sights and soju drinking tips are welcome J
  • 4. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Today’s Agenda 09:30 Welcome 09:35 Building with Kubernetes on AWS 10:20 Amazon EKS Hands-On Lab 12:45 Lunch 13:15 Partner Presentation 13:45 Building with Fargate and Amazon ECS 14:30 Fargate Hands-On Lab 16:30 Closing Discussion 17:00 End
  • 5. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Important information • Bathrooms • Slides will be provided after the event via slideshare • You will receive a survey after the event in your email. It only takes 3 minutes to complete! Let us know how we did and what to improve.
  • 6. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Containers on AWS
  • 7. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS Container Services Landscape MANAGEMENT Deployment, Scheduling, Scaling & Management of containerized applications HOSTING Where the containers run Amazon Elastic Container Service Amazon Elastic Container Service for Kubernetes Amazon EC2 AWS Fargate Higher Level Services Application Management Amazon Elastic Container Registry Compute Where the containers run Spot Instance GPU Instance
  • 8. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Omar Lari, Container Services March 4th, 2019 Kubernetes on AWS Open source container management
  • 9. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Agenda • Why containers? • What is Kubernetes? • Key concepts • Running Kubernetes on AWS • Demonstration
  • 10. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Why containers? FizzBuzz!
  • 11. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Application environment components Runtime Engine Code Dependencies Configuration
  • 12. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Local Laptop Staging / QA Production On-Premises Different environments
  • 13. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Local Laptop Staging / QA Production On-Prem It worked on my machine, why not in prod? v6.0.0 v7.0.0 v4.0.0 v7.0.0
  • 14. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Containers to the rescue Runtime Engine Code Dependencies
  • 15. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Docker Lightweight container virtualization platform. Tools to manage and deploy your applications. Licensed under the Apache 2.0 license. First released March 2013 Built by Docker, Inc.
  • 16. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Docker Image Read only image that is used as a template to launch a container. Start from base images that have your dependencies, add your custom code. Docker file for easy, reproducible builds. bootfs kernel Base image Image Image W ritable Container add ngix add nodejs U buntu References parent image
  • 17. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Local Laptop Staging / QA Production On-Prem Four environments, same container
  • 18. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Container Implementation Server (Host) Hypervisor Guest OS Bins/Libs App 2 Guest OS Bins/Libs App 3 Guest OS Bins/Libs App 1 Server (Host) Hypervisor Guest OS App 2 Guest OS App 3 Guest OS App 1 Guest OS / Docker Engine Bins/Libs Bins/LibsBins/Libs Server (Host) Operating System (OS) Guest OS Guest OSGuest OS Libraries App 1, 2, 3 Bare Metal Virtual Machine Containers
  • 19. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. But how do we make this work at scale?
  • 20. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. We need to • start, stop, and monitor lots of containers running on lots of hosts • decide when and where to start or stop containers • control our hosts and monitor their status • manage rollouts of new code (containers) to our hosts • manage how traffic flows to containers and how requests are routed
  • 21. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. aka ‘k8s’
  • 22. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS Container Services Landscape MANAGEMENT Deployment, Scheduling, Scaling & Management HOSTING Where the containers run Amazon EC2 IMAGE REGISTRY Container Image Repository
  • 23. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Open source container management platform Helps you run containers at scale Gives you primitives for building modern applications What is Kubernetes?
  • 24. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Containers on Hosts A host is a server – e.g. EC2 virtual machine. We run these hosts together as a cluster. Web App To start let’s run a 3 copies of our web app across our cluster of EC2 hosts. 3x Our simple example web application is already containerized.
  • 25. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Run n containers We define a deployment and set the replicas to 3 for our container.
  • 26. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Scale up! Need more containers? Update the replication set! The new containers are started on the cluster.
  • 27. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Untimely termination Oh no! Our host has died! Kubernetes notices only 3 of the 5 containers are running and starts 2 additional containers on the remaining hosts.
  • 28. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Containers IRL In production, we want to do more complex things like, • Run a service to route traffic to a set of running containers • Manage the deployment of containers to our cluster • Run multiple containers together and specify how they run
  • 29. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Pods • Define how your containers should run • Allow you to run 1 to n containers together Containers in pods have • Shared IP space • Shared volumes • Shared scaling (you scale pods not individual containers) When containers are started on our cluster, they are always part of a pod. (even if it’s a pod of 1) Container A Container B
  • 30. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Services One of the ways traffic gets to your pods. • Internal IP addresses are assigned to each pod • Services are connected to pods and use labels to reference which pod to route requests to containers. container containers containers
  • 31. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Deployments Services work with deployments to manage updating or adding new pods. Let’s say we want to deploy a new version of our web app as a ‘canary’ and see how it handles traffic.
  • 32. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Deployments The deployment creates a new replication set for our new pod version.
  • 33. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Deployments Only after the new pod returns a healthy status to the service do we add more new pods and scale down the old.
  • 34. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Running Kubernetes on AWS
  • 35. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 51%of Kubernetes workloads run on AWS today — Cloud Native Computing Foundation
  • 36. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Elastic Container Service for Kubernetes Managed K8s control plane — highly available API server and etcd nodes aws eks create-cluster --name <> --role-arn <> --resources-vpc-config <> ... Bring your own EC2 worker nodes Core tenets • Platform for enterprises to run production-grade workloads • Provides a native and upstream Kubernetes experience – Kubernetes certified • Seamless integration with AWS services • Actively contributes to the Kubernetes project APIs
  • 37. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. eksctl – eks the easy way CLI to provision and managed your EKS cluster apiVersion: eksctl.io/v1alpha4 kind: ClusterConfig metadata: name: demo region: ap-northeast-2 version: '1.11’ nodeGroups: ... Quickly get started without worrying about VPC, IAM and Node design eksctl create cluster Or define a config file for more detailed configuration control eksctl create cluster –f config.yaml
  • 38. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
  • 39. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. EKS Customers C r e a t e E K S c l u s t e r P r o v i s i o n w o r k e r n o d e s L a u n c h a d d - o n s L a u n c h w o r k l o a d s
  • 40. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. EKS – Kubernetes control plane C r e a t e c l u s t e r C r e a t e H A c o n t r o l p l a n e I A M i n t e g r a t i o n C e r t i f i c a t e m a n a g e m e n t S e t u p L B
  • 41. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. EC2 Worker Nodes EKS Control Plane Customer VPC EKS VPC Network Load Balancer ENI API Access Kubectl Exec/Logs TLS Static IPs ENI Attachment Autoscaling Group EKS Architecture
  • 42. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Native VPC networking with CNI plugin Pods have the same VPC address inside the pod as on the VPC Simple, secure networking Open source and on GitHub …{ } https://github.com/aws/amazon-vpc-cni-k8s Container Networking Interface (CNI)
  • 43. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. VPC CNI plugin • Bridge between the K8s land – AWS VPC • AWS Routable IPs • Thin layer – no performance impact • Pod IP ENI secondary IP
  • 44. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
  • 45. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS IAM Authenticator for Kubernetes • AWS native access management • Built in collaboration with Heptio • Kubectl and worker nodes • Works with Kubernetes Role-Based Authentication (RBAC)
  • 46. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. IAM roles for Kubectl
  • 47. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
  • 48. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
  • 49. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Tracing
  • 50. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
  • 51. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. CICD for Kubernetes Apps
  • 52. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. CI/CD of apps on Kubernetes—choices
  • 53. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Jenkins
  • 54. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. EKS Deployment Pipeline
  • 55. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Questions?
  • 56. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Start at https://eksworkshop.com