Containers State of the Union - Amazon Web Servicesaws-de-media.s3. 2018...آ  9:30-10:30: Containers

  • View
    0

  • Download
    0

Embed Size (px)

Text of Containers State of the Union - Amazon Web Servicesaws-de-media.s3. 2018...آ  9:30-10:30:...

  • © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

    Ric Harvey, Technical Developer Evangelist

    @ric__harvey

    Containers State of the Union

  • © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

    Agenda

    Great container sessions planned for today:

    9:30-10:30: Containers State of the Union (Ric Harvey) 10:30-11:00: Break 11:00-12:00: Deep Dive on ECS (Ric Harvey) 12:00-13:00: Amazon Elastic Container Service for Kubernetes (Amazon EKS) (Christoph Kassen) 13:00-14:00: Lunch 14:00-15:00: Deep Dive on Fargate (Ric Harvey) 15:00-15:30: Break 15:30-16:30: Building Efficient Containers (Christoph Kassen) 16:30: Drinks and Networking

    @ric__harvey

  • © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

    What are containers and why are customers using them?

  • © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

    What are containers?

    A container is an atomic, self-contained package of software that includes everything it needs to run (code, runtime, libraries, packages, etc.).

    A popular, widely-used container platform is Docker. More on that here: https://www.docker.com

    https://www.docker.com/

  • © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

    Why not VM’s?

    Server Host OS

    Hypervisor

    Guest OS

    Guest OS

    Guest OS

    Bins/libs Bins/libs Bins/libs

    App A App A App B

    Server Host OS

    Docker Engine

    Bins/libs Bins/libs

    App A

    App A

    App B

    App B

    App B

    App B

  • © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

    Why are containers so popular?

    • Portable • Lightweight • Standardized • Easy to deploy • Along with containers, comes the “monolith to microservices”

    story: containers and microservices go hand in hand.

  • © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

    First customers ran docker on EC2

    +

  • © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

    “Make this easier for us!”

  • © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

    Elastic Container Service

  • © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

    Containers made it easy to build and scale appsBut management of thes systems where hardAmazon Elastic Container Service Cluster management as a hosted service

  • © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

    We removed the pain points and heavy lifting

    • Scheduling • Placement • Task management (health checks) • Management control plane updates

  • © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

    ECS

    H i g h l y s c a l a b l e , h i g h p e r f o r m a n c e c o n t a i n e r

    m a n a g e m e n t s y s t e m

    A m a n a g e d p l a t f o r m

    ECS Cluster

    management Container

    orchestration Deep AWS integration

  • © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

    Broad range of customers

  • © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

    “By taking advantage of Amazon ECS, we have the power to understand, manipulate, and manage our environment

    easily.” Zaven Boni

    DevOps Engineering Lead, GoPro

  • © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

    70% Reduction in Compute Footprint

  • © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

    What we did with ECS in 2018

    Route 53 Auto Naming

    Service Discovery

    Daemon Scheduling CLI Supports Docker Compose V3

    ECS Agent Signed for Security

    Faster Launch Times

    SSM Parameter Support

    Configure shm-size and tmpfs

    Docker Container Health Checks Task metric & metadata endpoint

    Docker17.09

  • © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

    Registry

  • © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

    Amazon ECR

    Container Registry • Fully Managed • Secure • Highly Available • Simplified Workflow

  • © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

    Kubernetes – now GA

  • © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

    Kubernetes

  • © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

    57% of Kubernetes workloads run on AWS today — Cloud Native Computing Foundation

  • © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

    “Make this easier for us!”

  • © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

    “Nat ive AWS Integrat ions . ”

  • © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

    ”An Open Source Kubernetes Exper ience. ”

  • © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

    E L A S T I C C O N TA I N E R S E R V I C E F O R K U B E R N E T E S (EKS)

  • © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

    EKS is Kubernetes Certified

  • © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

    EKS

    P l a t f o r m f o r e n t e r p r i s e s t o r u n p r o d u c t i o n - g r a d e K u b e r n e t e s - g r a d e

    i n s t a l l a t i o n s

    EKS Managed

    and upstream

    experience

    Seamless, native

    integration with AWS services

    Contributes back to

    open source

    community

  • © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

    mycluster.eks.amazonaws.com

    EKS Workers

    kubectl

    Amazon EKS

    AZ 1 AZ 2 AZ 3

    Your AWS account

  • © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

    Semantic Versioning (semver)

    v1.10.0 Major Minor Patch

    Breaking Changes

    New Features

    Bug fixes Security

  • © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

    1.9.11.9.2 Version

    1.9 Version 1.10

    Kubernetes Upgrades

  • © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

    Still managing workers/nodes is hard!

  • © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

    “Make this easier for us!”

  • © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

    Fargate

  • © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

    AWS Fargate

    No cluster or infrastructure to manage or scale

    Everything is handled at the container level

    Scale seamlessly on demand

    Underlying technology for container management

  • © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

    What does Fargate mean?

    No worrying about scaling, service mesh, underlying infrastructure, cluster resources, capacity, setup.

    Just give it a task definition or pod (in 2018), set some resource limits, and away you go.

  • © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

    With Fargate: focus on your workload (job, container, function, task) first. Full stop.

  • © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

    How does this work in practice?

    Two launch types for ECS and EKS: • EC2 (traditional, manage your cluster infrastructure) • Fargate

  • © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

    TASK CPU MEMORY CONFIGURATIONS

    50 different CPU/Memory configurations to choose from

    CPU Memory 256 (.25 vCPU) 512MB, 1GB, 2GB

    512 (.5 vCPU) 1GB, 2GB, 3GB, 4GB

    1024 (1 vCPU) 2GB, 3GB, 4GB, 5GB, 6GB, 7GB, 8GB

    2048 (2 vCPU) Between 4GB and 16GB in 1GB increments

    4096 (4 vCPU) Between 8GB and 30GB in 1GB increments

  • © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

    PRICING

    Per-second billing. 1 minute minimum

    Pay for what you provision

    Billed for Task level CPU and Memory

  • © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

    This is changing compute!

  • © 2018, Amazon Web Services, Inc. or its