KubeCon EU 2016: A lightweight deployment system for appops
-
Upload
kubeacademy -
Category
Technology
-
view
339 -
download
0
Transcript of KubeCon EU 2016: A lightweight deployment system for appops
© 2016 Mesosphere, Inc. All Rights Reserved.
A LIGHTWEIGHT DEPLOYMENT SYSTEM FOR APPOPS
1
Michael Hausenblas, Developer & Cloud Advocate | 2016-03-10 | KubeCon, London
© 2016 Mesosphere, Inc. All Rights Reserved.
MOTIVATION
2
© 2016 Mesosphere, Inc. All Rights Reserved. 3
appopsThe person who writes an app is also the person responsible for operating the app in production, 24/7 and with SLOs.
© 2016 Mesosphere, Inc. All Rights Reserved. 4
NOT about: provisioning VMs, install Kubernetes, replace HDDs, etc.
appops
© 2016 Mesosphere, Inc. All Rights Reserved.
WHY DO I BOTHER?
5
• I care about appops• kubectl feels low-level• want an application-centric workflow• how about collaboration?
medium.com/@mhausenblas/what-is-appops-why-do-i-care-what-i-do-about-it-b83a28b0eabc
© 2016 Mesosphere, Inc. All Rights Reserved.
THE LANDSCAPE
6
© 2016 Mesosphere, Inc. All Rights Reserved.
HOW DO YOU (AS AN APPOP) USE KUBERNETES?
7
• kubectl and/or API• http://helm.sh• https://redspread.com• https://forge.puppetlabs.com/garethr/kubernetes • https://github.com/InQuicker/ktmpl
© 2016 Mesosphere, Inc. All Rights Reserved.
INTRODUCING KPLOY
8
http://kubernetes.sh/kploy
© 2016 Mesosphere, Inc. All Rights Reserved.
KPLOY DESIGN PRINCIPLES
9
• convention over configuration• make it easy for appops to get started• UX—always explain what's going on (and your options)
© 2016 Mesosphere, Inc. All Rights Reserved.
KPLOY IS …
10
• app-centric• manifest-based• stateless (only local resources)
© 2016 Mesosphere, Inc. All Rights Reserved.
KPLOY APP LAYOUT
11
.
Kployfile
rcs/
services/
env/
apiserver: http://localhost:8080author: Michael Hausenblascache_remotes: Falsename: demonamespace: defaultsource: http://github.com/mhausenblas/kploy-demo
© 2016 Mesosphere, Inc. All Rights Reserved.
KPLOYIN ACTION
12
© 2016 Mesosphere, Inc. All Rights Reserved.
BASIC USAGE
13
• Create app from scratch• Launch app• Monitor app behaviour• Tear down app init dryrun run
list stats
destroy
© 2016 Mesosphere, Inc. All Rights Reserved.
ADVANCED USAGE
14
• Handling credentials• Scale app• Debug• Export app
© 2016 Mesosphere, Inc. All Rights Reserved.
THE FUTURE
15
© 2016 Mesosphere, Inc. All Rights Reserved.
SOME IDEAS …
16
• pull/push (currently an experimental feature)• more integrations, advance Helm integration• what would you like to see? PRs welcome :) • https://github.com/kubernauts/kploy
© 2016 Mesosphere, Inc. All Rights Reserved. 17
WHERE CAN I LEARN MORE?
17
http://shop.oreilly.com/product/0636920043874.do http://www.oreilly.com/webops-perf/free/kubernetes.csp https://www.nginx.com/resources/library/docker-networking/
© 2016 Mesosphere, Inc. All Rights Reserved. 18
WHERE CAN I LEARN MORE?
18
http://k8s.info