141
Security Management Networking Introspection Performance Utilization the 7 characteristics of container-native infrastructure

The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

Embed Size (px)

Citation preview

Page 1: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

SecurityManagement Networking IntrospectionPerformance Utilization

the 7 characteristics of container-native infrastructure

Page 2: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

herehas…

who

Page 3: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

container?built a

Page 4: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

container?run a

Page 5: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

containerrun a

in production?

Page 6: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

yeah?

Page 7: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

you run it?where’d

Page 8: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

in a VMyou ran it

didn’t you?

Page 9: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17
Page 10: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17
Page 12: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

container-native!that’s not

Page 13: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17
Page 14: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

container-nativeinfrastructure

7 characteristics of

Page 15: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

@misterbissontweet questions to

Page 16: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

native?Container-

Page 17: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17
Page 18: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17
Page 19: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17
Page 20: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17
Page 21: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17
Page 22: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17
Page 23: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17
Page 24: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

containerUnit of compute

Page 25: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

containersProvision

Page 26: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

VMs…not

Page 27: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

bare metalContainers run on

Page 28: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

VMs…not in

Page 29: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

containersPay for

Page 30: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

VMs…not

Page 31: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17
Page 32: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17
Page 33: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

Our simple app

Nginx

Couchbase

Node

audiofprint

Page 34: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

Deploy that app

Nginx

Couchbase

Node

audiofprint

Nginx

Couchbase

Node

audiofprint

VM-native Container-Native

VM: 2 vCPU / 7.5GB RAM

Page 35: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

Now scale it

CouchbaseCouchbase

Nginx Node

audiofprint

Nginx Node

audiofprint

VM: 2 vCPU / 7.5GB RAMVM: 2 vCPU / 7.5GB RAM

VM-native Container-Native

Nginx

Couchbase

Node audiofprint

Nginx

Couchbase

Node audiofprint

VM: 2 vCPU / 7.5GB RAMVM: 2 vCPU / 7.5GB RAM

Page 36: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

What’s that bill?

VM-native 4 VMs

8 containers

$0.560/hour $403.20/month

Container-native 0 VMs

8 containers

$0.315/hour $226.66/month

Page 37: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

have to bewhy does it

that way?

Page 38: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

mostinfrastructure

Page 39: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

twoscenario

pick

Page 40: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

two:• elasticity • security • performance

pick

Page 41: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

two:• elasticity • security • performance

pick

bare metal{

Page 42: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

two:• elasticity • security • performance

pick

hardware virtual

machine{

Page 43: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

container-nativeinfrastructure

Page 44: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

threescenario

pick

Page 45: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

three:• elasticity • security • performance

pick

bare metal

containers{

Page 46: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

but

Page 47: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

the kernelsupports it

only if

Page 48: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

only if

Page 49: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

the kernelsupports it

only if

Page 52: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

not Docker’sfault

it’s

Page 53: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

the kernel’sfault

it’s

Page 54: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

breath for a moment

Page 55: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

are wedoing this?

why

Page 56: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

foundationcontainers are the

Page 57: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

foundationnot the goal

containers are the

Page 62: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

it didn’torphotos

happen

Page 63: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

it didn’torphotos

happen

Page 64: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

it doesn’torrepo

work

Page 65: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

it doesn’tor

work

public repo

Page 66: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

withpublic repo

1. Dockerfile 2. docker-compose.yml 3. documentation, etc…

Page 67: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

wait

Page 68: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

stopwait

Page 69: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

stopwait

the audience says…

Page 70: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

how

Page 71: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

proprietary codein a public repo?

can i put

Page 72: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

proprietary codei argue back

but that’s not

Page 73: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

“For our Go microservices, we use Travis CI to run tests and to create Debian packages as build artifacts. Travis uploads these packages to S3, and then another system pulls them down, signs them, and imports them into our private Apt repository. We use FPM to create packages, and Aptly to manage our repos.”

Page 74: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

“[W]e’ve really embraced chatops at 500px, so we've scripted the use of those tools into our beloved and loyal Hubot friend, BMO. Anyone at 500px can easily deploy the site or a microservice with a simple chat message like bmo deploy <this thing>.”

Page 75: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

that’s1. public APIs & open source tools 2. glue code / infrastructure as code 3. secrets & configuration details

Page 76: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

so, either1. the glue code really is proprietary 2. they didn’t have time 3. it doesn’t work 4. the secrets are baked into the code 5. it runs on pets and can’t be

deployed repeatably

Page 79: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

so, either1. the glue code really is proprietary 2. they didn’t have time 3. it doesn’t work 4. the secrets are baked into the code 5. it runs on pets and can’t be

deployed repeatably

Page 80: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

fix thatplease

Page 81: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

we need1. immutable infrastructure 2. repeatable installs 3. separate config from code

Page 82: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

container-nativemakes it possible

Page 83: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

container-nativemakes it real

developing for

Page 84: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

breath for a moment

Page 85: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

promised youa list

i

Page 86: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

the unit of computeis a container

1:

Page 87: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

you provisioncontainers

2:

Page 88: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

the containers runon bare metal

3:

Page 89: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

the kernel offersreal security4:

Page 90: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

no escapeno incursion

that means

Page 91: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

porouscontainers

non-

Page 92: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

the containers are protectedfrom noisy neighbors

5:

Page 93: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

48 cores of bare metalif a single container can

dominate them all?

what’s the point of

Page 94: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

every container getsa VNIC

6:

Page 95: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

every container getsa VNIC

6:

(or two)

Page 96: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

every container getsa VNIC

6:

(or three)

Page 97: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

every container getsa VNIC

6:

(or more)

Page 98: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

well-connected containeris a happy container

because a

Page 99: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

You pay forcontainers

7:

Page 100: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

You pay forcontainers

7:

(not VMs)

Page 101: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

science fictionthis is not

Page 102: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

state of the artthis is

Page 103: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

availablenow

this is

Page 104: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

actuallynot new at all

this is

Page 105: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17
Page 106: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17
Page 107: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

container spectrum

bare metal alternatives to hardware VMs

Page 108: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

container spectrum

infrastructure containers

Page 109: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

container spectrum

application containers

bare metal alternatives to hardware VMs

Page 110: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

container spectrum

Docker

infrastructure containers

Page 111: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

container spectrum

Docker

infrastructure containers

multi-process Docker containers

Page 112: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

container spectrum

Docker

infrastructure containersslimmed-down

infrastructure containers

Page 113: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

container spectrum

Docker

infrastructure containers

multi-process Docker containers

slimmed-down infrastructure containers

Page 114: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

container spectrum

Docker

infrastructure containers

multi-process Docker containers

slimmed-down infrastructure containers

they’re all

good

Page 115: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

breath for a moment

Page 116: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

container-nativemakes it possible

Page 117: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

container-nativemakes it real

developing for

Page 118: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

and

Page 119: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

container-nativemakes it fastand

Page 120: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

hostsno more

Page 121: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

petsno more

Page 122: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

lifecycleno more

management

Page 123: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

pay foronly

what you use

Page 124: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

breath for a moment

Page 125: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

The best place to run containers. Making Ops simple and scalable.

SecurityManagement Networking IntrospectionPerformance Utilization

Page 126: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

SecurityManagement Networking IntrospectionPerformance Utilization

Public Cloud Triton Elastic Container Service. We run our customer’s mission critical applications on container native infrastructure

Private Cloud Triton Elastic Container Infrastructure is an on-premise, container run-time environment used by some of the world’s most recognizable brands

Page 127: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

SecurityManagement Networking IntrospectionPerformance Utilization

Public Cloud Triton Elastic Container Service. We run our customer’s mission critical applications on container native infrastructure

Private DataCenter Triton Elastic Container Infrastructure is an on-premise, container run-time environment used by some of the world’s most recognizable brands

it’s open source!fork me, pull me: https://github.com/joyent/sdc

Page 128: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

how do yousecure it for

So…

bare metal?

Page 129: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

Container anatomy

Applicationpackage

Runtimeenvironment

Page 130: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

Container anatomy

Applicationpackage

Executiondriver

Page 131: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

Container anatomy

Applicationpackage

LXC }Dock

er

Page 132: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

Container anatomy

Applicationpackage

libcontainer }Dock

er

Page 133: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

Container anatomy

Applicationpackage

appc }Rock

et

Page 134: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

Container anatomy

Applicationpackage

runC }O

pen

Cont

ainer

Fou

ndat

ion

Page 135: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

Container anatomy

Applicationpackage

SmartOSZone

}Dock

er o

n Tri

ton

Page 136: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

can i run myLinux images

So…

on Triton?

Page 137: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

yes!

Page 138: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17
Page 139: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

Demotime

Page 140: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

SecurityManagement Networking IntrospectionPerformance Utilization

thank you

Page 141: The 7 characteristics of container native infrastructure, LinuxCon/ContainerCon 2015-08-17

the 7 characteristics of container-native infrastructure1. the unit of compute is a container 2. you provision containers 3. the containers run on bare metal 4. the containers are multi-tenant bare metal secure 5. every container gets its share 6. every container gets one or more VNICs 7. you pay for containers