[AWS SAA-C02 Study Note] Container & Kubernetes

Elastic Beanstalk

Like Heroku

Intro

Quick Deploy and manage web-apps on AWS without worrying about infrastructure

The Heroku of AWS. Choose a platform, upload your code and it runs with little worry for developers about infrastructure knowledge.

Not recommended for “Production” applications.

/img/AWS/Quick-Deploy/Untitled.png

Elastic Beanstalk Cheat Sheet

/img/AWS/Quick-Deploy/Untitled%201.png

EKS

Amazon Elastic Kubernetes Service (Amazon EKS)

Kubernetes Architecture

master node

etcd

worker node

/img/AWS/Quick-Deploy/Untitled%202.png

Amazon EKS Architecture

/img/AWS/Quick-Deploy/Untitled%203.png

/img/AWS/Quick-Deploy/Untitled%204.png

ECS

Elastic Container Service (ECS)

  • managed service to run Containers (Docker)
  • serverless (with Fargate) and managed (with EC2) options
  • supports auto scaling to handle variable volume
  • cost-effective
  • great for ad-hoc jobs or full scale service

Workflow

/img/AWS/Quick-Deploy/Untitled%205.png

can assign task on specific ECS cluster

ECR

EC2 Container Registry

  • fully managed docker container registry
  • store, manage and deploy container images
  • integrated with amazon ECS
  • encrypted, redundant and highly-available
  • granular security permissions with AWS IAM

/img/AWS/Quick-Deploy/Untitled%206.png

ECS

runs and manages docker-enabled applications across a logical group of EC2 instances

/img/AWS/Quick-Deploy/Untitled%207.png

ECS Cluster

  • logical group of EC2 instances that you can place containers onto
  • can utilize on-demand, spot or reserved EC2 instances
  • can include different EC2 instance types region-specific
  • EC2 instances are liked in a virtual private cloud (VPC)

ECS Agent

  • manages the state of containers on a single EC2 instance
  • how ECS communicates with the docker daemon on the EC2 instance
  • must be on every EC2 instance in your ECS cluster
  • included with the ECS-Optimized Amazon Machine Image (AMI)