Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Kubernetes SF Meetup January 2016

Kubernetes SF Meetup January 2016

Slides for my talk "Building a PaaS on Kubernetes" for the January 2016 Kubernetes SF meetup #K8Ssf.

Jason Hansen

January 12, 2016
Tweet

More Decks by Jason Hansen

Other Decks in Technology

Transcript

  1. Virtual Infrastructure Layer 2 Physical Infrastructure Layer 1 Operating System

    Layer 3 Container Engine Layer 4 Scheduling Layer 5 Orchestration Layer 6 Workflow Layer 7 Deis, OpenShift Kubernetes, Marathon Mesos, Omega (k8s) Docker, Rocket, OSv Ubuntu, RHEL, CoreOS, … vSphere, EC2, GCE, Azure, … Raw compute, network, storage
  2. 400,000 800,000 1,200,000 1,600,000 Feb 2015 Mar 2015 Apr 2015

    May 2015 Jun 2015 Jul 2015 Aug 2015 Sep 2015 Oct 2015 Nov 2015 Dec 2015 1,600,000 Downloads! December 2015
  3. Project Growth 1,500 3,000 4,500 6,000 Jan 2015 Feb 2015

    Mar 2015 Apr 2015 May 2015 Jun 2015 Jul 2015 Aug 2015 Sep 2015 Oct 2015 Nov 2015 Dec 2015 Project Stars Pull Requests Forks 2,031 Pull Requests 823 Forks 5,158 Stars December 2015
  4. • Deis v1 Success brought lessons at scale • Fleet

    scheduler manageable but not ideal • V1 Scheduler Evaluation: Swarm, Mesos, Kubernetes
  5. Fleet Swarm Mesos K8S Resource
 Aware No Yes Yes Yes

    Maturity 1.0 1.0 Very 1.1 Scale 3-25 (etcd2) 1000* 1000+ 100+ Resource
 Reqs. Small Small Large Small / Medium Community Medium Small / Growing Large Large / Growing Complexity Low Low High Medium
  6. Virtual Infrastructure Layer 2 Physical Infrastructure Layer 1 Operating System

    Layer 3 Container Engine Layer 4 Scheduling Layer 5 Orchestration Layer 6 Workflow Layer 7 }
  7. Public / Private Cloud / Bare Metal Kubernetes Deis Workflow

    + Kubernetes: Overview Simple REST API Source to Image Builder Log Aggregation Application Release & Rollback Authn / Authz Edge Routing Deis Workflow Developers deis CLI git push deis master Operators deisctl CLI Helm kubectl
  8. Public / Private Cloud / Bare Metal Deis Managed App

    C Deis Managed App D Deis Managed App B Kubernetes Workload A Kubernetes Workload B Kubernetes Workload C Kubernetes Workload D Deis Workflow + Kubernetes: Detail Package Management HELM Deis Workflow & Managed Apps Simple REST API Source to Image Builder Log Aggregation Application Release & Rollback Authn / Authz Edge Routing Kubernetes Cluster Operators deisctl CLI Helm kubectl Developers deis CLI git push deis master
  9. namespace=deis deis-router LoadBalancer: AWS ELB: 80, 443, 2222 namespace=app-a SVC:

    app-a Pod: app-a-v1-b Pod: app-a-v1-a RC: app-a-v1 deis-database deis-workflow deis-minio deis-registry deis-builder deis-etcd Kubernetes Cluster
  10. Compute: Cloud / Bare Metal Provisioning Compute OS Scheduling Orchestration

    Workflow Software Defined Networking Software Defined Storage } Container Image Registry Customer App CI Container Runtime Containers Image Simple REST API Authn / Authz Edge Routing Release and Rollback Log Aggregation Source to Image Alerting Monitoring Containers Image App Definition Service Binding
  11. ReplicationController Replicas: 2 Label Selectors: version=1 app=my-app Name: my-app-xaj712 Labels:

    version=1 app=my-app Pod Name: my-app-lka2ja Labels: version=1 app=my-app Pod
  12. Service: My App Name: my-app Label Selectors: app=my-app ReplicationController Replicas:

    2 Label Selectors: version=1 app=my-app Name: my-app-xaj712 Labels: version=1 app=my-app Pod Name: my-app-lka2ja Labels: version=1 app=my-app Pod
  13. Service: My App Name: my-app Label Selectors: app=my-app ReplicationController Replicas:

    2 Label Selectors: version=1 app=my-app Name: my-app-xaj712 Labels: version=1 app=my-app Pod Name: my-app-lka2ja Labels: version=1 app=my-app Pod Name: my-app-123hfa Labels: version=canary app=my-app Pod
  14. Kubernetes Service Development Timeline Replication Controller: v1 App Pod App

    Pod Release 1 Re Deis Workflow Edge Routing + SSL Termination Deis Workflow: Deploying to Kubernetes Customers Application Requests Developers git push deis master
  15. Kubernetes Service Development Timeline Replication Controller: v1 App Pod App

    Pod Release 1 Replication Controller: v2 App Pod App Pod Release 2 Re Deis Workflow Edge Routing + SSL Termination Deploying to Kubernetes
  16. Kubernetes Service Replication Controller: v1 App Pod App Pod Release

    1 Replication Controller: v2 App Pod App Pod Release 2 Replication Controller: v3 App Pod App Pod Release3 w nation bernetes
  17. Service: My App Name: my-app Label Selectors: app=my-app ReplicationController Replicas:

    2 Label Selectors: version=1 app=my-app Name: my-app-xaj712 Labels: version=1 app=my-app Pod Name: my-app-lka2ja Labels: version=1 app=my-app Pod
  18. Service: My App Name: my-app Label Selectors: app=my-app ReplicationController Replicas:

    1 Label Selectors: version=2 app=my-app ReplicationController Replicas: 2 Label Selectors: version=1 app=my-app Name: my-app-xaj712 Labels: version=1 app=my-app Pod Name: my-app-lka2ja Labels: version=1 app=my-app Pod
  19. Service: My App Name: my-app Label Selectors: app=my-app ReplicationController Replicas:

    1 Label Selectors: version=2 app=my-app ReplicationController Replicas: 2 Label Selectors: version=1 app=my-app Name: my-app-xaj712 Labels: version=1 app=my-app Pod Name: my-app-lka2ja Labels: version=1 app=my-app Pod Name: my-app-19sdfd Labels: version=2 app=my-app Pod
  20. Service: My App Name: my-app Label Selectors: app=my-app ReplicationController Replicas:

    2 Label Selectors: version=2 app=my-app ReplicationController Replicas: 1 Label Selectors: version=1 app=my-app Name: my-app-xaj712 Labels: version=1 app=my-app Pod Name: my-app-19sdfd Labels: version=2 app=my-app Pod Name: my-app-xaj712 Labels: version=2 app=my-app Pod
  21. Service: My App Name: my-app Label Selectors: app=my-app ReplicationController Replicas:

    2 Label Selectors: version=2 app=my-app ReplicationController Replicas: 0 Label Selectors: version=1 app=my-app Name: my-app-19sdfd Labels: version=2 app=my-app Pod Name: my-app-0q2a87 Labels: version=2 app=my-app Pod