Pet VMs in Kubernetes? WTH

Fabian Deutsch, Red Hat

devconf.cz, 2017

@dummdida - dummida.tumblr.com

https://www.flickr.com/photos/infinitelydigital/3763912574/

Why?

Pet VMs

  • Many knobs and switches
  • Hand crafted - VM and its contents

 

"Oh! I deleted the VM. Argh."

Kubernetes

  • It's all about running containers
  • Images become ready-to-use containers

 

 

"Oh - I deleted a container?"

Container Cluster

VM Cluster

Workloads: Differ

Container Cluster

VM Cluster

Infrastructure: Similar

Container Cluster

VM Cluster

Scheduling ~ Storage ~ Network ~ Host life-cycle

Same infrastructure & different workloads

Container and VM Cluster

Scheduling ~ Storage ~ Network ~ Host life-cycle

First Try

s /docker/qemu/

 

Try: Don't run a pod but a pet VM instead

Keep everything Kubernetes, just replace the launcher

Ugh.

(Fail)

Representation + Handling

Try Again

KubeVirt

  • Virtualization add-on to Kubernetes
  • Resources, controllers & daemons

Kubernetes

virt-controller

VM (TPR)

.

.

virt-handler

VM

kubelet

Cluster

Host

Pod

 

 

 

Pod

 

 

 

Pod

 

 

 

$ curl run.kubevirt.io/demo.sh | bash

(Fedora 25, Ubuntu 16.04.1 LTS)

Up Next

  • Disks

  • Networks

  • Improved Scheduling

Beyond

  • Live Migration

  • Templating

  • Host API

  • K8s TPR Improvements

  • K8s Snapshot Improvements

  • K8s Volume Cloning

Ouch. Issues. Ouch. Gaps.

Opportunities

Common ground for cluster wide virtualization management.

  • Focus on virtualization and consume infrastructure
  • Embrace Kubernetes as a cluster manager
  • Improve Kubernetes in supporting other workloads

Questions?

http://kubevirt.io

@kubevirt

irc: fabiand

fabiand@redhat.com

@dummdida

Join the KubeVirt Gathering on

Saturday, 12 noon, C236

Pet VMs in Kubernetes? WTH (slimmed)

By Fabian Deutsch

Pet VMs in Kubernetes? WTH (slimmed)

  • 1,869