Skip to content

Instantly share code, notes, and snippets.

View fabiand's full-sized avatar

Fabian Deutsch fabiand

View GitHub Profile
@fabiand
fabiand / 02.png
Last active January 19, 2018 11:51
02.png
[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 / README.md
Last active April 3, 2018 12:31
DP API Options

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
## Another shot at the problem scope
Devices to support
- GPUs
- FPGAs
- Network cards
- Random Number Generators
@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

A VM is defined by three aspects

  • Size
  • Guest
  • Workload

Overview

Components

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

Flow

@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
#!/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 / 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!