Skip to content

Instantly share code, notes, and snippets.

Fabian Deutsch fabiand

View GitHub Profile
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
View v2v-job.log
[fabiand@tee Downloads]$ k logs v2v-4d9b8
+ echo /v2v-dst ova http://192.168.42.1:8000/my.ova ''
+ DSTD=/v2v-dst
/v2v-dst ova http://192.168.42.1:8000/my.ova
+ SRCTYPE=ova
+ SRC=http://192.168.42.1:8000/my.ova
+ SRCURI=
++++ readlink -f /v2v.d/bin/job
+++ dirname /v2v.d/bin/job
++ readlink -f /v2v.d/bin/..
@fabiand
fabiand / qemu-pod.yaml
Last active Nov 17, 2017
Connecting qemu to the pod's network
View qemu-pod.yaml
apiVersioin: v1
kind: Pod
metadata:
name: qemu
spec:
securityContext:
runAsUser: 0
volumes:
- name: host-dev
hostPath:
You can’t perform that action at this time.