Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Kubernetes for the Mesos User
Search
Brian Hicks
July 12, 2016
Programming
1
92
Kubernetes for the Mesos User
Talk for the Denver Mesos User Group
Brian Hicks
July 12, 2016
Tweet
Share
More Decks by Brian Hicks
See All by Brian Hicks
Esperanto
brianhicks
0
120
Snake Snacks: Function Composition, The Dumb Way
brianhicks
0
110
Make Snacks: Yet Another JavaScript Build System
brianhicks
0
73
State of Elm 2017
brianhicks
1
490
µKanren: A Minimal Functional Core for Relational Programming
brianhicks
0
400
Terraform All The Things!
brianhicks
2
360
ch-ch-ch-ch-changes in Elm 0.17.0
brianhicks
2
1.8k
State of Elm 2016
brianhicks
3
510
Mesos + Consul = Developer Happiness (JUG)
brianhicks
1
120
Other Decks in Programming
See All in Programming
富山発の個人開発サービスで日本中の学校の業務を改善した話
krpk1900
4
370
プログラミング言語学習のススメ / why-do-i-learn-programming-language
yashi8484
0
120
Software Architecture
hschwentner
6
2.1k
技術を根付かせる / How to make technology take root
kubode
1
240
密集、ドキュメントのコロケーション with AWS Lambda
satoshi256kbyte
0
170
Grafana Cloudとソラカメ
devoc
0
140
法律の脱レガシーに学ぶフロントエンド刷新
oguemon
5
730
データの整合性を保つ非同期処理アーキテクチャパターン / Async Architecture Patterns
mokuo
41
15k
2,500万ユーザーを支えるSREチームの6年間のスクラムのカイゼン
honmarkhunt
6
5.1k
Pulsar2 を雰囲気で使ってみよう
anoken
0
230
Amazon Q Developer Proで効率化するAPI開発入門
seike460
PRO
0
110
Unity Android XR入門
sakutama_11
0
140
Featured
See All Featured
Embracing the Ebb and Flow
colly
84
4.6k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
114
50k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
29
4.6k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
656
59k
RailsConf 2023
tenderlove
29
1k
Building a Modern Day E-commerce SEO Strategy
aleyda
38
7.1k
The MySQL Ecosystem @ GitHub 2015
samlambert
250
12k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
44
9.4k
Build your cross-platform service in a week with App Engine
jlugia
229
18k
Speed Design
sergeychernyshev
25
780
YesSQL, Process and Tooling at Scale
rocio
171
14k
Reflections from 52 weeks, 52 projects
jeffersonlam
348
20k
Transcript
Kubernetes for the Mesos User Denver Mesos Users Group, July
12 2016 1
Brian Hicks
[email protected]
@brianhicks Denver Mesos Users Group, July 12
2016 2
Denver Mesos Users Group, July 12 2016 3
Demo! Denver Mesos Users Group, July 12 2016 4
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
Web Interface Denver Mesos Users Group, July 12 2016 6
Denver Mesos Users Group, July 12 2016 7
Denver Mesos Users Group, July 12 2016 8
Scheduling Denver Mesos Users Group, July 12 2016 9
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
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
Application Definition Denver Mesos Users Group, July 12 2016 12
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
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
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
When K8s, when Mesos? Denver Mesos Users Group, July 12
2016 16
Fault Tolerance: Tie! Denver Mesos Users Group, July 12 2016
17
Data Frameworks: Mesos Denver Mesos Users Group, July 12 2016
18
12-factor Apps: K8s Denver Mesos Users Group, July 12 2016
19
UI: Mesos Denver Mesos Users Group, July 12 2016 20
CLI: K8s Denver Mesos Users Group, July 12 2016 21
IP-Per-Container: K8s Denver Mesos Users Group, July 12 2016 22
Multitenancy: K8s Denver Mesos Users Group, July 12 2016 23
Questions? Denver Mesos Users Group, July 12 2016 24