KubeCon EU 2016: A lightweight deployment system for appops

18
© 2016 Mesosphere, Inc. All Rights Reserved. A LIGHTWEIGHT DEPLOYMENT SYSTEM FOR APPOPS 1 Michael Hausenblas, Developer & Cloud Advocate | 2016-03-10 | KubeCon, London

Transcript of KubeCon EU 2016: A lightweight deployment system for appops

Page 1: 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

Page 2: KubeCon EU 2016: A lightweight deployment system for appops

© 2016 Mesosphere, Inc. All Rights Reserved.

MOTIVATION

2

Page 3: KubeCon EU 2016: A lightweight deployment system for appops

© 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.

Page 4: KubeCon EU 2016: A lightweight deployment system for appops

© 2016 Mesosphere, Inc. All Rights Reserved. 4

NOT about: provisioning VMs, install Kubernetes, replace HDDs, etc.

appops

Page 5: KubeCon EU 2016: A lightweight deployment system for 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

Page 6: KubeCon EU 2016: A lightweight deployment system for appops

© 2016 Mesosphere, Inc. All Rights Reserved.

THE LANDSCAPE

6

Page 7: KubeCon EU 2016: A lightweight deployment system for appops

© 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

Page 8: KubeCon EU 2016: A lightweight deployment system for appops

© 2016 Mesosphere, Inc. All Rights Reserved.

INTRODUCING KPLOY

8

http://kubernetes.sh/kploy

Page 9: KubeCon EU 2016: A lightweight deployment system for appops

© 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)

Page 10: KubeCon EU 2016: A lightweight deployment system for appops

© 2016 Mesosphere, Inc. All Rights Reserved.

KPLOY IS …

10

• app-centric• manifest-based• stateless (only local resources)

Page 11: KubeCon EU 2016: A lightweight deployment system for appops

© 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

Page 12: KubeCon EU 2016: A lightweight deployment system for appops

© 2016 Mesosphere, Inc. All Rights Reserved.

KPLOYIN ACTION

12

Page 13: KubeCon EU 2016: A lightweight deployment system for appops

© 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

Page 14: KubeCon EU 2016: A lightweight deployment system for appops

© 2016 Mesosphere, Inc. All Rights Reserved.

ADVANCED USAGE

14

• Handling credentials• Scale app• Debug• Export app

Page 15: KubeCon EU 2016: A lightweight deployment system for appops

© 2016 Mesosphere, Inc. All Rights Reserved.

THE FUTURE

15

Page 16: KubeCon EU 2016: A lightweight deployment system for appops

© 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

Page 17: KubeCon EU 2016: A lightweight deployment system for appops

© 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/

Page 18: KubeCon EU 2016: A lightweight deployment system for appops

© 2016 Mesosphere, Inc. All Rights Reserved. 18

WHERE CAN I LEARN MORE?

18

http://k8s.info