Slide 1

Slide 1 text

if you can drink and watch Star Wars, you can handle Kubernetes in production (because that’s exactly what we did) Ilya Dmitrichenko

Slide 2

Slide 2 text

1. motivation 2. barriers to adoption 3. our team’s experience 4. tools/demo kube-1 kube-3 kube-2 kube-4 kube-6 kube-5 kube-7

Slide 3

Slide 3 text

deliver faster your organisation absolutely must

Slide 4

Slide 4 text

adopt microservices everyone in your team agreed that you will

Slide 5

Slide 5 text

adopt containers everyone in your team agreed that you will

Slide 6

Slide 6 text

adopt kubernetes everyone in your team agreed that you will

Slide 7

Slide 7 text

faster development everyone in your team sees that microservices are key to

Slide 8

Slide 8 text

reliable deployment everyone in your team sees that containers are key to

Slide 9

Slide 9 text

scalability & utilisation everyone in your team sees that kubernetes is key to

Slide 10

Slide 10 text

and most of people in this room will agree with you.

Slide 11

Slide 11 text

and most of people in this room will agree with you. in theory.

Slide 12

Slide 12 text

and most of people in this room will agree with you. in theory. while in practice, there are still more questions…

Slide 13

Slide 13 text

more questions will arise because

Slide 14

Slide 14 text

more questions will arise because your team has opinions

Slide 15

Slide 15 text

more questions will arise because your team has opinions you cannot take very big risk

Slide 16

Slide 16 text

more questions will arise because your team has opinions you cannot take very big risk and legacy systems are a thing.

Slide 17

Slide 17 text

let’s see what these questions are…

Slide 18

Slide 18 text

deliver faster don’t forget that you must

Slide 19

Slide 19 text

1. language & frameworks 1/5

Slide 20

Slide 20 text

1. language & frameworks you know what’s best for your application

Slide 21

Slide 21 text

1. language & frameworks with microservices this is much easier then it used to be

Slide 22

Slide 22 text

2. toolchains & workflow 2/5

Slide 23

Slide 23 text

2. toolchains & workflow you already know how to compile your app, write tests & configure CI

Slide 24

Slide 24 text

2. toolchains & workflow building containers is easy, most major CI systems support it

Slide 25

Slide 25 text

3. infrastructure 3/5

Slide 26

Slide 26 text

3. infrastructure creating a Kubernetes cluster is fairly easy, for some users

Slide 27

Slide 27 text

3. infrastructure not as easy if you have opinions and non-trivial requirements

Slide 28

Slide 28 text

4. shipping pipeline 4/5

Slide 29

Slide 29 text

4. shipping pipeline Kubernetes has all the primitives, but tooling isn’t fully understood yet

Slide 30

Slide 30 text

4. shipping pipeline what is the best practice to handle deployment of your application?

Slide 31

Slide 31 text

5. operations 5/5

Slide 32

Slide 32 text

5. operations what are the tools you need to execute most efficiently?

Slide 33

Slide 33 text

let’s summarise

Slide 34

Slide 34 text

we call this ABCDE of Microservices A) write the app B) test and build it C) provision a cluster D) deploy the app E) execute

Slide 35

Slide 35 text

deliver faster? that’s all theory, but how are you going to

Slide 36

Slide 36 text

practical concerns about infrastructure

Slide 37

Slide 37 text

practical concerns about infrastructure opinions & risks

Slide 38

Slide 38 text

practical concerns about infrastructure all-new and shiny

Slide 39

Slide 39 text

operating system common examples of infrastructure opinions

Slide 40

Slide 40 text

automation tools common examples of infrastructure opinions

Slide 41

Slide 41 text

common examples of infrastructure opinions cloud provider

Slide 42

Slide 42 text

common examples of infrastructure opinions virtual vs bare-metal

Slide 43

Slide 43 text

common examples of infrastructure opinions commercial support

Slide 44

Slide 44 text

common examples of infrastructure opinions cluster management

Slide 45

Slide 45 text

common examples of infrastructure opinions troubleshooting

Slide 46

Slide 46 text

common examples of infrastructure opinions databases

Slide 47

Slide 47 text

common examples of infrastructure opinions access control

Slide 48

Slide 48 text

common examples of infrastructure opinions platform as a service?

Slide 49

Slide 49 text

kubernetes depends on infra a lot all of the opinions will surface

Slide 50

Slide 50 text

Controller Manager [kube-controller-manager] Scheduler [kube-scheduler] API Server [kube-apiserver] Cluster Nodes [kube-proxy] [kubelet] etcd1 etcd2 etcd3 all of the opinions will surface and you still need really?

Slide 51

Slide 51 text

Controller Manager [kube-controller-manager] Scheduler [kube-scheduler] API Server [kube-apiserver] Cluster Nodes [kube-proxy] [kubelet] etcd1 etcd2 etcd3

Slide 52

Slide 52 text

Controller Manager [kube-controller-manager] Scheduler [kube-scheduler] API Server [kube-apiserver] Cluster Nodes [kube-proxy] [kubelet] etcd1 etcd2 etcd3 all of the opinions will surface and you still need a network

Slide 53

Slide 53 text

Controller Manager [kube-controller-manager] Scheduler [kube-scheduler] API Server [kube-apiserver] Cluster Nodes [kube-proxy] [kubelet] etcd1 etcd2 etcd3 all of the opinions will surface and you still need a storage product

Slide 54

Slide 54 text

Controller Manager [kube-controller-manager] Scheduler [kube-scheduler] API Server [kube-apiserver] Cluster Nodes [kube-proxy] [kubelet] etcd1 etcd2 etcd3 all of the opinions will surface and you still need a monitoring solution

Slide 55

Slide 55 text

Controller Manager [kube-controller-manager] Scheduler [kube-scheduler] API Server [kube-apiserver] Cluster Nodes [kube-proxy] [kubelet] etcd1 etcd2 etcd3 all of the opinions will surface and you still need a private registry

Slide 56

Slide 56 text

Controller Manager [kube-controller-manager] Scheduler [kube-scheduler] API Server [kube-apiserver] Cluster Nodes [kube-proxy] [kubelet] etcd1 etcd2 etcd3 all of the opinions will surface and you still need to deliver faster

Slide 57

Slide 57 text

our team’s use-case scope-app-259 0 pods app-mapper 2 pods The Internet users 2 pods kubernetes 0 pods Uncontained ip-172-20-0-149 Uncontained ip-172-20-0-148 scope-app-327 1 pod scope-app-281 0 pods frontend 2 pods scope-app-301 0 pods fairly simple Go app, only 6 services

Slide 58

Slide 58 text

our team’s use-case scope-app-259 0 pods app-mapper 2 pods The Internet users 2 pods kubernetes 0 pods Uncontained ip-172-20-0-149 Uncontained ip-172-20-0-148 scope-app-327 1 pod scope-app-281 0 pods frontend 2 pods scope-app-301 0 pods no messaging or fancy databases

Slide 59

Slide 59 text

our team’s use-case scope-app-259 0 pods app-mapper 2 pods The Internet users 2 pods kubernetes 0 pods Uncontained ip-172-20-0-149 Uncontained ip-172-20-0-148 scope-app-327 1 pod scope-app-281 0 pods frontend 2 pods scope-app-301 0 pods must have portable cluster deployment

Slide 60

Slide 60 text

our team’s experience

Slide 61

Slide 61 text

our team’s experience tried a few different approaches for local and cloud deployments

Slide 62

Slide 62 text

our team’s experience some cloud providers are less equal than others

Slide 63

Slide 63 text

our team’s experience some cloud provider services are slower than others

Slide 64

Slide 64 text

our team’s experience setup from scratch is hard, especially due to enforced security

Slide 65

Slide 65 text

our team’s experience self-hosting is nice, but somewhat harder to reason about

Slide 66

Slide 66 text

our team’s experience operating systems and and configuration

Slide 67

Slide 67 text

our team’s experience declarative provisioning wins and network-first was a revelation

Slide 68

Slide 68 text

our team’s experience checkout git.io/k8s-anywhere and see for yourself

Slide 69

Slide 69 text

we needed simple and robust provisioning in any environment

Slide 70

Slide 70 text

we needed zero-config scale-out and in-place upgrade

Slide 71

Slide 71 text

we built easy to adopt cluster provisioning tools

Slide 72

Slide 72 text

we built containerised public key infrastructure solution

Slide 73

Slide 73 text

we built weave as a bootstrap/management and pod networking

Slide 74

Slide 74 text

in a nutshell weavedns, few small shell scripts and hyperkube images

Slide 75

Slide 75 text

in a nutshell just pick a few docker hosts and launch weave

Slide 76

Slide 76 text

in a nutshell pick worker, master & etcd nodes. and off you go!

Slide 77

Slide 77 text

live demo ip-172-20-0-164 ip-172-20-0-222 ip-172-20-0-244 ip-172-20-0-243 ip-172-20-0-242 ip-172-20-0-12 ip-172-20-0-51

Slide 78

Slide 78 text

potentially. are you anywhere closer to delivering faster?

Slide 79

Slide 79 text

scope.weave.works ilya-proxy-e20b5 1 container metrics-98d4fd7-ybopj 1 container dbshell-fons-e6791 1 container users-cb08840-kjd39 1 container dbshell-fons-14417 dbshell-fons-2eab5 dbshell-fons-2d95f Uncontained ip-172-20-0-149 Uncontained ip-172-20-0-148 app-mapper-77d895a-rjqc1 app-mapper-77d895a-bk4k5 1 container The Internet users-cb08840-dj03q 1 container frontend-515708e-0y9h0 1 container

Slide 80

Slide 80 text

@errordeveloper

Slide 81

Slide 81 text

weave release v1.5

Slide 82

Slide 82 text

party! users-cb08840-kjd39 2 containers metrics-98d4fd7-ybopj 2 containers users-cb08840-dj03q 2 containers frontend-515708e-0y9h0 2 containers dbshell-fons-e6791 2 containers app-mapper-77d895a-bk4k5 2 containers Uncontained ip-172-20-0-149 ilya-proxy-e20b5 2 containers The Internet Uncontained ip-172-20-0-148