Skip to content

Instantly share code, notes, and snippets.

View fabiand's full-sized avatar

Fabian Deutsch fabiand

View GitHub Profile
kind: VM
spec:
running: true
template: # BM
spec:
domain:
foo: bar
volumes:
- pvcName: myrootfs
ec2: # On AWS EC2

kramdown : A Markdown-superset converter

apiVersion: kubevirt.io/v1alpha3
kind: VirtualMachineInstance
metadata:
labels:
special: vmi-windows
name: vmi-windows
spec:
domain:
cpu:
cores: 2
---
apiVersion: kubevirt.io/v1alpha3
kind: VirtualMachine
metadata:
labels:
kubevirt.io/vm: fedora-30
name: fedora-30
spec:
running: true
template:
@fabiand
fabiand / README.md
Last active May 9, 2019 11:26
RHEL VM Operator

Goal

Easy way for users to create RHEL VM's in their namespaces.

Plan

  1. Provide containerDisk for shipment into cluster
  2. Provide an operator to take care of in-cluster creation
  3. optional: Operator to perform updates!
#!/bin/bash
export LC_ALL=C
_api() { curl -s -H "Authorization: token $GH_TOKEN" https://api.github.com/$1 ; }
_org() { _api orgs/kubevirt/$1 ; }
_repos() { _api repos/kubevirt/$1 ; }
_kubevirt_pulls() { _repos kubevirt/pulls ; }
#_kubevirt_pulls | jq ".[] | select((.assignees | length) == 0).issue_url" ; exit
@fabiand
fabiand / complete-chagelog.sh
Last active December 10, 2018 13:05
Get the ocmplete changelog of KubeVirt releases
git tag | sort -rV | while read TAG ;
do
[[ "$TAG" =~ [0-9].0$ ]] || continue ;
echo -e "\n# $TAG" ;
git show $TAG | sed -n "/changes$/,/Contributors/ p" | egrep "^- " ;
done

Overview

Components

  1. (1) trusted storage connector pod
  2. (Many) VM pods connection to storage using shared directory

Flow

A VM is defined by three aspects

  • Size
  • Guest
  • Workload
@fabiand
fabiand / pod.yaml
Last active July 3, 2018 10:57
vlan/bridge DP
Pod VM VM VM
| | |
| | |
| +-----+ |
---------+-+--------------+--------------
| | |
br0 br1 br2
| | |
DP vlan0 vlan1 vlan2