Slide 1

Slide 1 text

From Zero to Docker in Production A data driven exploration to the motivations, challenges, & answers of going to production with Docker

Slide 2

Slide 2 text

No content

Slide 3

Slide 3 text

The Birth Of MVC Web Frameworks

Slide 4

Slide 4 text

The Birth Of MVC Web Frameworks > gem install rails

Slide 5

Slide 5 text

The Birth Of MVC Web Frameworks > gem install rails

Slide 6

Slide 6 text

The Birth Of MVC Web Frameworks •  (M) ActiveRecord •  (V) ActionView •  (C) ActionController > gem install rails

Slide 7

Slide 7 text

> gem install rails The Birth Of MVC Web Frameworks •  (M) ActiveRecord •  (V) ActionView •  (C) ActionController •  Webrick •  SQLite

Slide 8

Slide 8 text

No content

Slide 9

Slide 9 text

Code Module Packaging Trinity Adoption Language Command Line Interface Registry Package Format 1995 Perl cpan CPAN Pearl Modules .meta 2004 Ruby gem RubyGems Gems .gemspec 2005 Java mvn Maven Central Artifacts .pom 2008 Python pip PyPI Package PKG-INFO 2011 .NET nuget NuGet Gallery Package .nuspec 2012 PHP composer Packagist Packages Composer.json

Slide 10

Slide 10 text

Age of Treasure Hunters Perl Ruby Gem Java Artifact Python Egg

Slide 11

Slide 11 text

Libs & Binaries Adoption OS Command Line Interface Registry Package Format 1999 Debian apt-get Depends •  Ubuntu •  Debian Libs / Binaries .deb 2001 Redhat yum Depends •  CentOS •  Fedora Libs / Binaries .rpm 2009 Mac brew Brew.sh Libs / Binaries Formulas.rb

Slide 12

Slide 12 text

Something is Missing?

Slide 13

Slide 13 text

Need to package apps, Libs, and Binaries together.

Slide 14

Slide 14 text

Need a bigger box

Slide 15

Slide 15 text

How about Shipping Containers?

Slide 16

Slide 16 text

Docker Is A Package Management System

Slide 17

Slide 17 text

Docker Is A Package Management System

Slide 18

Slide 18 text

Docker Is A Package Management System > docker run wordpress

Slide 19

Slide 19 text

Docker Is A Package Management System > docker run wordpress

Slide 20

Slide 20 text

Docker Is A Package Management System Dockerfile > docker run wordpress

Slide 21

Slide 21 text

Docker Is A Package Management System > docker run wordpress Dockerfile

Slide 22

Slide 22 text

Docker Is A Package Management System > docker run wordpress

Slide 23

Slide 23 text

Docker Is A Package Management System > docker run wordpress

Slide 24

Slide 24 text

Docker Is A Package Management System > docker run wordpress

Slide 25

Slide 25 text

Docker Is A Package Management System > docker run wordpress

Slide 26

Slide 26 text

Docker Is A VM Alternative

Slide 27

Slide 27 text

Docker Is A VM Alternative

Slide 28

Slide 28 text

Docker Runtime is a VM Alternative 310 IT Pros Surveyed •  Reduce VM Costs •  Cloud Portability

Slide 29

Slide 29 text

Docker Runtime is a VM Alternative 310 IT Pros Surveyed •  Reduce VM Costs – 3% •  Cloud Portability – 11%

Slide 30

Slide 30 text

Docker is a Package Management System 310 IT Pros Surveyed •  Reduce VM Costs – 3% •  Cloud Portability – 11% •  Developer Efficiency

Slide 31

Slide 31 text

Docker is a Package Management System 310 IT Pros Surveyed •  Reduce VM Costs – 3% •  Cloud Portability – 11% •  Developer Efficiency – 38%

Slide 32

Slide 32 text

Docker is a Package Management System 310 IT Pros Surveyed •  Reduce VM Costs – 3% •  Cloud Portability – 11% •  Developer Efficiency – 38% •  Microservice Arhitecture – 36%

Slide 33

Slide 33 text

Welcome to the Era of Global Trade Titans

Slide 34

Slide 34 text

No content

Slide 35

Slide 35 text

Lovely Story … But So What is the problem?

Slide 36

Slide 36 text

Lovely Story … But So What is the problem? 310 IT Pros Surveyed

Slide 37

Slide 37 text

ConfiguraBon Management Puppet Chef Ansible Salt

Slide 38

Slide 38 text

Container OrchestraBon Capistrano Puppet Chef Ansible Salt Docker Swarm Kubernetes Amazon ECS Mesos …

Slide 39

Slide 39 text

310 IT Pros Surveyed Container OrchestraBon

Slide 40

Slide 40 text

Kubernetes IntroducBon

Slide 41

Slide 41 text

Kubernetes IntroducBon Components kube-apiserver kube-scheduler kubelet PrimiBves Deployments Services Secrets Persistent Storage

Slide 42

Slide 42 text

kube-apiserver

Slide 43

Slide 43 text

kube-apiserver

Slide 44

Slide 44 text

kube-apiserver Controllers Price Ansible Ansible Tower $50 / node Chef Chef Server $6 / node Puppet Puppet Enterprise $112 / node SaltStack SaltStack Enterprise $150 / node Kubernetes kube-apiserver Free & Open Source

Slide 45

Slide 45 text

kube-scheduler

Slide 46

Slide 46 text

kube-scheduler

Slide 47

Slide 47 text

kube-scheduler

Slide 48

Slide 48 text

kubelet

Slide 49

Slide 49 text

PrimiBves Overview

Slide 50

Slide 50 text

PrimiBves Overview Challenge Kubernetes’s Primitives Basics Networking Security Persistent Storage

Slide 51

Slide 51 text

PrimiBves Overview Challenge Kubernetes’ Primitives Basics Deployments Networking Services Security Secrets Persistent Storage Persistent Volumes

Slide 52

Slide 52 text

Deployments •  Describe work loads

Slide 53

Slide 53 text

Deployments •  Describe work loads •  YAML (or JSON) file posted to REST API

Slide 54

Slide 54 text

Deployments •  Describe work loads •  YAML (or JSON) file posted to REST API •  Work loads described by deployments are created and maintained by Kubernetes

Slide 55

Slide 55 text

Deployments

Slide 56

Slide 56 text

Deployments

Slide 57

Slide 57 text

Deployments

Slide 58

Slide 58 text

Deployments

Slide 59

Slide 59 text

Kubernetes PrimiBves Challenge Primitives Basics Deployments Networking Services Security Secrets Persistent Storage Persistent Volumes

Slide 60

Slide 60 text

Services •  Describe access to Deployments similar to Load Balancers. •  YAML (or JSON) file posted to REST API •  Access points described by Services are created and maintained by Kubernetes

Slide 61

Slide 61 text

Services

Slide 62

Slide 62 text

Services

Slide 63

Slide 63 text

Services

Slide 64

Slide 64 text

Services

Slide 65

Slide 65 text

Services

Slide 66

Slide 66 text

Services

Slide 67

Slide 67 text

Secrets •  SensiBve data such as Database Passwords, API Keys, and CerBficates •  YAML (or JSON) file posted to REST API •  Kubernetes Stores secrets and serves to work loads as Environment variables or mounted files.

Slide 68

Slide 68 text

Secrets

Slide 69

Slide 69 text

Secrets

Slide 70

Slide 70 text

Secrets

Slide 71

Slide 71 text

Secrets

Slide 72

Slide 72 text

Persistent Volumes •  IdenBfy and specify access to Persistent Block Storage resources •  YAML (or JSON) file posted to REST API •  Kubernetes mounts and maintains volumes to deployments.

Slide 73

Slide 73 text

DEMO TIME DEMO Source hYps://github.com/jrhicks/lrtechfest2017 Follow me on TwiYer @jrhicks Find this PresentaBon Online hYp://jrhicks.github.io

Slide 74

Slide 74 text

DEMO TIME