Skip to content

Instantly share code, notes, and snippets.

Fabian Deutsch fabiand

Block or report user

Report or block fabiand

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View windows.yaml
apiVersion: kubevirt.io/v1alpha3
kind: VirtualMachineInstance
metadata:
labels:
special: vmi-windows
name: vmi-windows
spec:
domain:
cpu:
cores: 2
View vm.yaml
---
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
RHEL VM Operator
View README.md

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!
View kubevirtstats.sh
#!/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 Dec 10, 2018
Get the ocmplete changelog of KubeVirt releases
View complete-chagelog.sh
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
View qemu-nbd-volume.md

Overview

Components

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

Flow

View mental-model.md

A VM is defined by three aspects

  • Size
  • Guest
  • Workload
@fabiand
fabiand / pod.yaml
Last active Jul 3, 2018
vlan/bridge DP
View pod.yaml
Pod VM VM VM
| | |
| | |
| +-----+ |
---------+-+--------------+--------------
| | |
br0 br1 br2
| | |
DP vlan0 vlan1 vlan2
View gist:81beda6550fae5731fd7e1a1ad48cc73
## Another shot at the problem scope
Devices to support
- GPUs
- FPGAs
- Network cards
- Random Number Generators
@fabiand
fabiand / README.md
Last active Apr 3, 2018
DP API Options
View README.md

Assumption:

  • We want to support a range of devices
  • We acknowledge that certain devices are exposed using different kernel APIs (paths, netlink, …)
  • We acknowledge that a logical/physical device can consist of multiple kernel level objects (paths, netlinks, …)
  • We acknowledge that device plugins could require informations about the pod in order to provide the right resource.

Goal:

  • Keep the declarative approach
  • iow: DP creates, kubelet allocates
  • iow: Prevent side-kubelet
You can’t perform that action at this time.