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

Kubernetes for the Mesos User

Kubernetes for the Mesos User

Talk for the Denver Mesos User Group

Brian Hicks

July 12, 2016
Tweet

More Decks by Brian Hicks

Other Decks in Programming

Transcript

  1. Kubernetes? Kubernetes is an open-source platform for automating deployment, scaling,

    and operations of application containers across clusters of hosts. 4 kubernetes.io (emphasis mine) Denver Mesos Users Group, July 12 2016 5
  2. Mesos 2-level scheduler, based on resources 1. Workers offer resources

    to masters 2. Masters offer resources to frameworks 3. Frameworks accept resource offers 4. Work gets scheduled Denver Mesos Users Group, July 12 2016 10
  3. Kubernetes Multi-step constraint-based scheduler 1. Find "suitable" nodes for pod

    2. Rank best nodes - for example, by least scheduled 3. Work gets scheduled Denver Mesos Users Group, July 12 2016 11
  4. Marathon { "id": "basic-0", "cmd": "while [ true ] ;

    do echo 'Hello Marathon' ; sleep 5 ; done", "cpus": 0.1, "mem": 10.0, "instances": 1 } Denver Mesos Users Group, July 12 2016 13
  5. Kubernetes --- apiVersion: extensions/v1beta1 kind: Deployment metadata: name: basic-0 spec:

    replicas: 1 template: metadata: labels: app: basic-0 spec: containers: - name: basic-0 image: docker.io/gliderlabs/alpine:3.2 resources: limits: cpu: 100m memory: 10Mi args: - /bin/sh - -c - while [ true ] ; do echo Hello Kubernetes ; sleep 5 ; done Denver Mesos Users Group, July 12 2016 14
  6. Kubernetes (CLI) kubectl run \ basic-0 \ --image=docker.io/gliderlabs/alpine:3.2 \ --limits="cpu=100m,memory=10Mi"

    \ -- /bin/sh -c 'while [ true ] ; do echo Hello Kubernetes ; sleep 5 ; done' Denver Mesos Users Group, July 12 2016 15