Download slides

Container Images. ○ An image is a stack of Read-Only file ... horizontal auto-scaling naming and ... kubectl run my-nginx --image=nginx --replicas=2 --port=80 ...
3MB Sizes 1 Downloads 167 Views
@briandorsey #kubernetes #GOTOber

1

Kubernetes Changing the way we think and talk about computing

GOTO Berlin - December 2015

@briandorsey #kubernetes #GOTOber

2

What is this talk? Container

@briandorsey #kubernetes #GOTOber

3

Brian Dorsey Developer Advocate - Google Cloud platform +BrianDorsey @briandorsey

@briandorsey #kubernetes #GOTOber

4

Containers? Yes/No if yes GOTO slide 7; if no GOTO slide 15;

@briandorsey #kubernetes #GOTOber

5

Containers

The Old Way: Shared Machines No isolation app

app

app

app

No namespacing Common libs Highly coupled apps and OS

libs kernel Bare Metal

@briandorsey #kubernetes #GOTOber

7

The Old Way: Virtual Machines Some isolation app

app

libs

libs

kernel

kernel

app

app

libs

libs

kernel

kernel

Expensive and inefficient Still highly coupled to the guest OS Hard to manage

Hypervisor

@briandorsey #kubernetes #GOTOber

8

The New Way: Containers App specific isolation Lightweight & efficient

app

app

libs

libs

app

app

libs

libs

Independent of the host Linux distribution … Lots of containers to manage kernel Hypervisor

@briandorsey #kubernetes #GOTOber

9

Container Images ●

An image is a stack of Read-Only file system layers.



Usual process: ○ build ○ push to repository ○ pull to execution host ○ start container from image

App PHP & Apache Libs Debian

@briandorsey #kubernetes #GOTOber

10

Image Layers Read / Write





A container is a process ○ started with kernel restrictions ○ a stack of shared Read-Only file system layers ○ plus a process specific ReadWrite layer

Read / Write

Read / Write

App PHP & Apache Libs Debian

Every new container gets a new Read-Write later. All containers from the same image start from exactly the same state! @briandorsey #kubernetes #GOTOber

11

Mounting Host Directories ●





It's possible to mount host directories into a container's filesystem. These are mutable and do outlive the container.

Read / Write

host dir

App PHP & Apache Libs

They're only available on that host.

Debian

@briandorsey #kubernetes #GOTOber

12

Why containers? • Performance • Repeatability • Quality of service • Accounting • Portability A fundamentally different way of managing applications

@briandorsey #kubernetes #GOTOber

Images by Connie Zhou 13

Containers are awesome! Let’s run lots of them!

@briandorsey #kubernetes #GOTOber

14

Kubernetes

PaaS

Virtual Machines Physical Computers @briandorsey #kubernetes #GOTOber

16

PaaS Container Clusters Virtual Machines Physical Computers @briandorsey #kubernetes #GOTOber

17

Kubernetes Greek for “Helmsman”; also the root of the words “governor” and “cybernetic” • Runs and manages containers • Inspired and informed by Google’s experiences and internal systems • Supports multiple cloud and bare-metal environments • Supports multiple container runtimes • 100% Open source, written in Go Manage applications, not machines @briandorsey #kubernetes #GOTOber

18

Everything at Google run