Slide 1

Slide 1 text

Modern Container Orchestration Kubernetes, CoreOS, and more @coreoslinux @brandonphilips

Slide 2

Slide 2 text

Brandon Philips CTO, CoreOS github.com/philips

Slide 3

Slide 3 text

Easy CoreOS+Kubernetes Setup vagrant, aws, bare metal, etc coreos.com/kubernetes/docs/latest/

Slide 4

Slide 4 text

What is CoreOS?

Slide 5

Slide 5 text

What is CoreOS?

Slide 6

Slide 6 text

No content

Slide 7

Slide 7 text

No content

Slide 8

Slide 8 text

What is CoreOS?

Slide 9

Slide 9 text

No content

Slide 10

Slide 10 text

The smartest way to run your container infrastructure. tectonic.com @tectonic

Slide 11

Slide 11 text

QUAY Secure hosting for private Docker repositories quay.io @quayio

Slide 12

Slide 12 text

Why build CoreOS?

Slide 13

Slide 13 text

you

Slide 14

Slide 14 text

you as a sw engineer

Slide 15

Slide 15 text

your

Slide 16

Slide 16 text

your container image

Slide 17

Slide 17 text

your

Slide 18

Slide 18 text

your

Slide 19

Slide 19 text

your com.example.app d474e8c57737625c

Slide 20

Slide 20 text

your d474e8c57737625c Signed By: Alice

Slide 21

Slide 21 text

you as an ops engineer

Slide 22

Slide 22 text

your

Slide 23

Slide 23 text

your

Slide 24

Slide 24 text

your

Slide 25

Slide 25 text

your ???

Slide 26

Slide 26 text

How do we do it?

Slide 27

Slide 27 text

reduce API contracts minimal

Slide 28

Slide 28 text

kernel systemd rkt ssh docker python java nginx mysql openssl app tro distro distro distro distro distro

Slide 29

Slide 29 text

python java nginx mysql openssl app tro distro distro distro distro distro kernel systemd rkt ssh docker

Slide 30

Slide 30 text

python openssl-A app1 tro distro distro distro distro distro java openssl-B app2 java openssl-B app3 kernel systemd rkt ssh docker

Slide 31

Slide 31 text

CoreOS container tro distro distro distro distro distro container container

Slide 32

Slide 32 text

OS operations

Slide 33

Slide 33 text

updates OS operations

Slide 34

Slide 34 text

manual updates

Slide 35

Slide 35 text

automatic updates

Slide 36

Slide 36 text

automatic updates

Slide 37

Slide 37 text

No content

Slide 38

Slide 38 text

No content

Slide 39

Slide 39 text

atomic update with rollback CoreOS Updates

Slide 40

Slide 40 text

machine configuration OS operations

Slide 41

Slide 41 text

get into the cluster machine config

Slide 42

Slide 42 text

No content

Slide 43

Slide 43 text

No content

Slide 44

Slide 44 text

No content

Slide 45

Slide 45 text

No content

Slide 46

Slide 46 text

distributed configuration cluster operations

Slide 47

Slide 47 text

etcd

Slide 48

Slide 48 text

/etc distributed

Slide 49

Slide 49 text

Available Leader Follower

Slide 50

Slide 50 text

Available Leader Follower

Slide 51

Slide 51 text

Available Leader Follower

Slide 52

Slide 52 text

Unavailable Leader Follower

Slide 53

Slide 53 text

Available Leader Follower

Slide 54

Slide 54 text

Available Leader Follower

Slide 55

Slide 55 text

Temporarily Unavailable Leader Follower

Slide 56

Slide 56 text

Available Leader Follower

Slide 57

Slide 57 text

Unavailable Leader Follower

Slide 58

Slide 58 text

what should run cluster operations

Slide 59

Slide 59 text

k8s/mesos/etc scheduler scheduling

Slide 60

Slide 60 text

getting work to servers scheduling

Slide 61

Slide 61 text

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

Slide 62

Slide 62 text

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

Slide 63

Slide 63 text

$ fab deploy:app

Slide 64

Slide 64 text

$ fab deploy:app

Slide 65

Slide 65 text

$ fab deploy:app

Slide 66

Slide 66 text

$ fab deploy:collector-app

Slide 67

Slide 67 text

$ fab deploy:collector-app

Slide 68

Slide 68 text

$ fab deploy:collector-app

Slide 69

Slide 69 text

$ fab deploy deploy:collector-app

Slide 70

Slide 70 text

$ fab lowest-loadaverage

Slide 71

Slide 71 text

$ fab lowest-loadaverage host1

Slide 72

Slide 72 text

$ fab lowest-loadaverage host1 $ fab -H host1 deploy:job

Slide 73

Slide 73 text

You Scheduler API Scheduler Machine(s)

Slide 74

Slide 74 text

while true { todo = diff(desState, curState) schedule(todo) }

Slide 75

Slide 75 text

while true { todo = diff(desState, curState) schedule(todo) }

Slide 76

Slide 76 text

while true { todo = diff(desState, curState) schedule(todo) }

Slide 77

Slide 77 text

while true { todo = diff(desState, curState) schedule(todo) }

Slide 78

Slide 78 text

No content

Slide 79

Slide 79 text

No content

Slide 80

Slide 80 text

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

Slide 81

Slide 81 text

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

Slide 82

Slide 82 text

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

Slide 83

Slide 83 text

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

Slide 84

Slide 84 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 rc web-prod select(env=prod,app=web) count=5

Slide 85

Slide 85 text

where is it running cluster operations

Slide 86

Slide 86 text

dns, LBs, k8s labels services

Slide 87

Slide 87 text

flexible service discovery k8s labels

Slide 88

Slide 88 text

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

Slide 89

Slide 89 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 90

Slide 90 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 91

Slide 91 text

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

Slide 92

Slide 92 text

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

Slide 93

Slide 93 text

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

Slide 94

Slide 94 text

No content

Slide 95

Slide 95 text

architecture in practice cluster operations

Slide 96

Slide 96 text

worker kubelet worker kubelet worker kubelet scheduler & API worker kubelet w ku t worker kubelet

Slide 97

Slide 97 text

worker kubelet worker kubelet scheduler & API

Slide 98

Slide 98 text

worker & API works on 1 node too

Slide 99

Slide 99 text

Easy CoreOS+Kubernetes Setup vagrant, aws, bare metal, etc coreos.com/kubernetes/docs/latest/

Slide 100

Slide 100 text

coreos.com/careers work with us

Slide 101

Slide 101 text

@coreoslinux @tectonicstack @brandonphilips thank you

Slide 102

Slide 102 text

continuous delivery of the OS - Linux Kernel API promise - Containers are required - Consistency of configuration

Slide 103

Slide 103 text

$ date -d "-674 days" Mon Jul 1 2013

Slide 104

Slide 104 text

Alpha α

Slide 105

Slide 105 text

Alpha Beta α β

Slide 106

Slide 106 text

Alpha Beta Stable α β S

Slide 107

Slide 107 text

$ cd coreos/manifest

Slide 108

Slide 108 text

$ cd coreos/manifest $ git tag | wc -l

Slide 109

Slide 109 text

$ cd coreos/manifest $ git tag | wc -l 329

Slide 110

Slide 110 text

$ uname -r 3.8.0

Slide 111

Slide 111 text

$ uname -r 3.8.0 $ uname -r 4.0.0

Slide 112

Slide 112 text

$ init --version systemd 207

Slide 113

Slide 113 text

$ init --version systemd 207 $ init --version systemd 219

Slide 114

Slide 114 text

github.com/coreos/etcd

Slide 115

Slide 115 text

No content

Slide 116

Slide 116 text

No content

Slide 117

Slide 117 text

No content

Slide 118

Slide 118 text

No content

Slide 119

Slide 119 text

No content

Slide 120

Slide 120 text

...

Slide 121

Slide 121 text

No content

Slide 122

Slide 122 text

No content

Slide 123

Slide 123 text

ok? ok?

Slide 124

Slide 124 text

no yes

Slide 125

Slide 125 text

No content

Slide 126

Slide 126 text

done

Slide 127

Slide 127 text

ok?

Slide 128

Slide 128 text

No content

Slide 129

Slide 129 text

github.com/coreos/etcd

Slide 130

Slide 130 text

container networking

Slide 131

Slide 131 text

github.com/appc/cni - Defining external plugins e.g. ipvlan, bridge, etc - Used in rkt today for setting up network namespaces - Collaborating with folks from Red Hat, Cisco, and others

Slide 132

Slide 132 text

192.168.1.10 192.168.1.40

Slide 133

Slide 133 text

192.168.1.10 192.168.1.40

Slide 134

Slide 134 text

10.0.0.3 10.0.0.8 10.0.1.10 10.0.1.20 192.168.1.10 192.168.1.40

Slide 135

Slide 135 text

No content

Slide 136

Slide 136 text

192.168.1.10 192.168.1.40 10.0.0.0/24 10.0.1.0/24

Slide 137

Slide 137 text

routes to 192.168.1.40 192.168.1.10 192.168.1.40 10.0.0.0/24 10.0.1.0/24

Slide 138

Slide 138 text

192.168.1.40 10.0.1.0/24 192.168.1.10 routes to 192.168.1.10