Skip to content

Instantly share code, notes, and snippets.

@victortoso
victortoso / my-configmap.yaml
Created May 14, 2024 10:25
Example of adding QEMU command line args with sidecar + configmap + python script
apiVersion: v1
kind: ConfigMap
metadata:
name: my-config-map
data:
my_script.sh: |
#!/usr/bin/env python3
import xml.etree.ElementTree as ET
import sys
@victortoso
victortoso / from-libvirt-git.asc
Created January 12, 2024 16:13
Comparing libvirtxml memory footpring with KubeVirt's schema.go
unsafe.Sizeof() of each domain struct
* libvirtxml: 520 bytes
* kubevirt : 920 bytes
compared:bytes is the percentage of libvirtxml in comparison to KubeVirt
e.g: Value: 111, means livirtxml's domain struct is 11% bigger than KubeVirt domain struct
| | <------- libvirtxml ----> | <-------- kubevirt -----> |
| compared: bytes (%) | benchmark | runtime | benchmark | runtime |
filename | benchmark | runtime | KiB | alloc | KiB | alloc | KiB | alloc | KiB | alloc |
@victortoso
victortoso / clipboard-configmap.yaml
Created January 8, 2024 17:37
kubevirt: sidecar: add qemu-vdagent channel with clipboard
apiVersion: v1
kind: ConfigMap
metadata:
name: clipboard-configmap
data:
my_script.sh: |
#!/usr/bin/python3
import xml.etree.ElementTree as ET
import sys

Keybase proof

I hereby claim:

  • I am victortoso on github.
  • I am toso (https://keybase.io/toso) on keybase.
  • I have a public key ASCV74hfrWun9SnJxoHoyyImOgZszCHBMOwvPgeeIX7ZOgo

To claim this, I am signing this object: