Slide 1

Slide 1 text

Brandon Philips @brandonphilips | [email protected] Slides and Demos: https://goo.gl/WYBR6L A Tutorial on Hyperscale Infrastructure Free Stickers @ Podium!

Slide 2

Slide 2 text

90+ Projects on GitHub, 1,000+ Contributors OPEN SOURCE Secure solutions, support plans, training + more ENTERPRISE CoreOS is Running the World’s Containers Linux

Slide 3

Slide 3 text

Expectations Tutorial

Slide 4

Slide 4 text

Quick Level-Set Follow Along

Slide 5

Slide 5 text

Secure the Internet MISSION

Slide 6

Slide 6 text

Separate Apps from OS STRATEGY

Slide 7

Slide 7 text

Make Servers Consistent STRATEGY

Slide 8

Slide 8 text

Make Servers Easy to Upgrade STRATEGY

Slide 9

Slide 9 text

Simplify Application Management STRATEGY

Slide 10

Slide 10 text

On Any Infrastructure STRATEGY

Slide 11

Slide 11 text

No content

Slide 12

Slide 12 text

No content

Slide 13

Slide 13 text

No content

Slide 14

Slide 14 text

No content

Slide 15

Slide 15 text

No content

Slide 16

Slide 16 text

No content

Slide 17

Slide 17 text

3 Application packaging Clustering Linux at scale

Slide 18

Slide 18 text

#GIFEE Borg/Omega Linux Chubby

Slide 19

Slide 19 text

#GIFEE Borg/Omega Linux Chubby

Slide 20

Slide 20 text

#GIFEE Borg/Omega Linux Chubby

Slide 21

Slide 21 text

Avoid single points of failure Regularly update software Consistent environment Why build #GIFEE?

Slide 22

Slide 22 text

Why build #GIFEE? Regularly update software

Slide 23

Slide 23 text

Application Packaging 1

Slide 24

Slide 24 text

Containers Run apps consistently

Slide 25

Slide 25 text

Abstract away app from the OS OS App

Slide 26

Slide 26 text

No content

Slide 27

Slide 27 text

No content

Slide 28

Slide 28 text

Base software managed by CoreOS kernel systemd OpenSSH

Slide 29

Slide 29 text

Protect apps from each other Isolated network namespace Isolated file system namespace Mixed versions of dependencies eg. python 3.4 & python 2.7

Slide 30

Slide 30 text

$ sudo rkt run coreos.com/etcd:v2.0.0 $ sudo rkt run coreos.com/etcd:v2.0.0 \ --cpu=750m --memory=128M $ sudo rkt run --net=host coreos.com/etcd:v2.0.0 rkt run

Slide 31

Slide 31 text

Search container metadata Identify vulnerabilities Explain update actions Clair container security auditing

Slide 32

Slide 32 text

After scanning millions of containers we found that over 80% still had Heartbleed 80% Clair container security auditing

Slide 33

Slide 33 text

No content

Slide 34

Slide 34 text

In-Progress Universal Container Format Packaged Downloaded Verified

Slide 35

Slide 35 text

Container Basics DEMO

Slide 36

Slide 36 text

Linux at Scale 2

Slide 37

Slide 37 text

CoreOS Linux Run containers any platform

Slide 38

Slide 38 text

Patches to the OS and kernel are hard Retest after updates No automation SECURITY Dependency breakage Uptime risk APPLICATION

Slide 39

Slide 39 text

No content

Slide 40

Slide 40 text

Auto-updating browsers fixed security We got HTML5 at the same time

Slide 41

Slide 41 text

Atomic operating system updates

Slide 42

Slide 42 text

Atomic operating system updates

Slide 43

Slide 43 text

CoreOS Linux Run containers any platform

Slide 44

Slide 44 text

Toolbox Tutorial DEMO

Slide 45

Slide 45 text

Clustering 3

Slide 46

Slide 46 text

Patches to the OS and kernel are hard Retest after updates No automation SECURITY Dependency breakage Uptime risk APPLICATION

Slide 47

Slide 47 text

Patches to the OS and kernel are hard No automation SECURITY Uptime risk APPLICATION

Slide 48

Slide 48 text

Operations Paradise Easy scale out Painless app upgrades Tolerant of machine failure

Slide 49

Slide 49 text

App Req/sec: 6,000 App Healthy: True

Slide 50

Slide 50 text

App Req/sec: 6,000 App Healthy: True

Slide 51

Slide 51 text

App Req/sec: 7,000 App Healthy: True

Slide 52

Slide 52 text

App Req/sec: 8,000 App Healthy: True

Slide 53

Slide 53 text

App Req/sec: 7,000 App Healthy: True

Slide 54

Slide 54 text

App Req/sec: 6,000 App Healthy: True

Slide 55

Slide 55 text

App Req/sec: 8,000 App Healthy: True

Slide 56

Slide 56 text

App Req/sec: 7,000 App Healthy: True

Slide 57

Slide 57 text

App Req/sec: 8,000 App Healthy: True

Slide 58

Slide 58 text

App Req/sec: 8,000 App Healthy: True

Slide 59

Slide 59 text

App Req/sec: 8,000 App Healthy: True

Slide 60

Slide 60 text

API for easing scaling, painless upgrades, and failure tolerance

Slide 61

Slide 61 text

Simple cluster operations Secure and Simple API Friendly operational tools db

Slide 62

Slide 62 text

Fault-tolerant database to support complex set of needs Leader election Cluster-wide Semaphores Service discovery Dynamic configuration

Slide 63

Slide 63 text

Hard Computer Science Problem ?

Slide 64

Slide 64 text

Hard Computer Science Problem Chubby

Slide 65

Slide 65 text

Distributed reliable key-value store for the most critical data of a distributed system

Slide 66

Slide 66 text

Etcd Basics DEMO

Slide 67

Slide 67 text

No content

Slide 68

Slide 68 text

No content

Slide 69

Slide 69 text

No content

Slide 70

Slide 70 text

No content

Slide 71

Slide 71 text

No content

Slide 72

Slide 72 text

No content

Slide 73

Slide 73 text

No content

Slide 74

Slide 74 text

No existing “cloud native” solutions Simple HTTP + JSON APIs Dynamic reconfiguration Why build etcd?

Slide 75

Slide 75 text

Simple key/value “Distributed etc” Keys are versioned Changes can be watch

Slide 76

Slide 76 text

Cluster-wide reboot lock - locksmith Service discovery - vulcand, skydns Cluster orchestration - k8s, cloud foundry

Slide 77

Slide 77 text

Industry Adoption 500+ projects on Github

Slide 78

Slide 78 text

Etcd Clustering DEMO

Slide 79

Slide 79 text

Simple cluster operations Secure and Simple API Friendly operational tools

Slide 80

Slide 80 text

Kubernetes Basics DEMO

Slide 81

Slide 81 text

Scheduler gets work to the servers

Slide 82

Slide 82 text

$ scp app host:/opt $ ssh host systemd-run /opt/app

Slide 83

Slide 83 text

$ scp app host:/opt $ ssh host systemd-run /opt/app

Slide 84

Slide 84 text

$ fab deploy:app

Slide 85

Slide 85 text

$ fab deploy:app

Slide 86

Slide 86 text

$ fab deploy:app

Slide 87

Slide 87 text

$ fab deploy:gpu-app

Slide 88

Slide 88 text

$ fab deploy:gpu-app

Slide 89

Slide 89 text

$ fab deploy:gpu-app

Slide 90

Slide 90 text

App Deployment DEMO

Slide 91

Slide 91 text

ReplicaSets drive the cluster to a desired state

Slide 92

Slide 92 text

pod env=prod app=web pod env=prod app=web pod env=prod app=web rs web-prod select(env=prod,app=web) count=1

Slide 93

Slide 93 text

pod env=prod app=web pod env=prod app=web pod env=prod app=web rs web-prod select(env=prod,app=web) count=1

Slide 94

Slide 94 text

pod env=prod app=web rs web-prod select(env=prod,app=web) count=1

Slide 95

Slide 95 text

App Failure DEMO

Slide 96

Slide 96 text

pod env=prod app=web rs web-prod select(env=prod,app=web) count=5

Slide 97

Slide 97 text

pod env=prod app=web pod env=prod app=web pod env=prod app=web pod env=prod app=web pod env=prod app=web rs web-prod select(env=prod,app=web) count=5

Slide 98

Slide 98 text

App Scaling DEMO

Slide 99

Slide 99 text

Services find scheduled apps (pods) and load balance them

Slide 100

Slide 100 text

pod env=dev app=web pod env=test app=web pod env=prod app=web

Slide 101

Slide 101 text

pod env=dev app=web pod env=test app=web pod env=prod app=web service test.example.com select(env=dev,app=web) service beta.example.com select(env=test,app=web) OR select(env=prod,app=web) service example.com select(env=prod,app=web)

Slide 102

Slide 102 text

pod env=test app=web pod env=prod app=web pod env=prod app=web pod env=dev app=web pod env=test app=web pod env=prod app=web service test.example.com select(env=dev,app=web) service beta.example.com select(env=test,app=web) OR select(env=prod,app=web) service example.com select(env=prod,app=web)

Slide 103

Slide 103 text

pod app=foo,version=1 service foo.cluster.local select(app=foo)

Slide 104

Slide 104 text

pod app=foo,version=1 pod app=foo,version=2 service foo.cluster.local select(app=foo)

Slide 105

Slide 105 text

pod app=foo,version=1 pod app=foo,version=2 service foo.cluster.local select(app=foo)

Slide 106

Slide 106 text

Service Discovery DEMO

Slide 107

Slide 107 text

pod env=prod app=web pod env=prod app=web pod env=prod app=web pod env=prod app=web pod env=prod app=web rs web-prod select(env=prod,app=web) count=5

Slide 108

Slide 108 text

pod env=prod app=web pod env=prod app=web pod env=prod app=web pod env=p rod pod env=prod app=web rs web-prod-4950 select(app=web,hash=4950) count=5 pod env=prod app=web pod env=prod app=web pod env=prod app=web pod env=p rod pod env=prod app=web rs web-prod-1328 select(app=web,hash=1328) count=5 deployment web-prod select(app=web) count=5

Slide 109

Slide 109 text

App Upgrades http://gb.ifup.org DEMO

Slide 110

Slide 110 text

Upstream rktnetes Auth/OIDC Node self-signed TLS

Slide 111

Slide 111 text

Scaling 15x scheduler performance 30k pods on 1k nodes SIG-scale

Slide 112

Slide 112 text

3 Application packaging Clustering Linux at scale

Slide 113

Slide 113 text

Sounds good, but... Is anyone successful with all this in prod?

Slide 114

Slide 114 text

Publically traded options exchange

Slide 115

Slide 115 text

Containers on CoreOS are powering ISE's high-throughput, low-latency financial exchange Running in production Bare metal & AWS Billions of transactions a day 150 million req/sec

Slide 116

Slide 116 text

No content

Slide 117

Slide 117 text

Secure the Internet MISSION

Slide 118

Slide 118 text

Separate Apps from OS STRATEGY

Slide 119

Slide 119 text

Make Servers Consistent STRATEGY

Slide 120

Slide 120 text

Make Servers Easy to Upgrade STRATEGY

Slide 121

Slide 121 text

Simplify Application Management STRATEGY

Slide 122

Slide 122 text

On Any Infrastructure STRATEGY

Slide 123

Slide 123 text

No content

Slide 124

Slide 124 text

Guides & Tools coreos.com/kubernetes

Slide 125

Slide 125 text

No content

Slide 126

Slide 126 text

Linux

Slide 127

Slide 127 text

No content

Slide 128

Slide 128 text

Runs on any platform Consistency across clouds Trivial dev, test, & prod Faster time to market

Slide 129

Slide 129 text

Training San Francisco December 8 & 9 New York December 14 & 15 https://coreos.com/training

Slide 130

Slide 130 text

Build, Store and Distribute your Containers quay.io

Slide 131

Slide 131 text

tectonic.com/summit - @TectonicSummit December 12 & 13 2016 - New York City

Slide 132

Slide 132 text

Thank you! Brandon Philips @brandonphilips | [email protected] | coreos.com We’re hiring in all departments! Email: [email protected] Positions: coreos.com/ careers

Slide 133

Slide 133 text

Bonus: Hacking Setup DEMO