Adding x86_64 forgejo runners to kubevirt

This commit is contained in:
Joseph Hanson 2024-05-25 07:49:14 -05:00
parent edd0eea29c
commit 9b6c7ff93c
Signed by: jahanson
SSH key fingerprint: SHA256:vy6dKBECV522aPAwklFM3ReKAVB086rT3oWwiuiFG7o
4 changed files with 99 additions and 20 deletions

View file

@ -0,0 +1,12 @@
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: fj-runner-01-disk1
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 80Gi
storageClassName: openebs-zfs

View file

@ -5,37 +5,35 @@ kind: VirtualMachine
metadata:
name: fj-runner-01
namespace: default
uid: e0725361-eb07-44bc-bb01-7a1dba39622a
labels:
kubevirt-manager.io/managed: "true"
kubevirt.io/domain: fj-runner-01
spec:
running: true
running: false
template:
metadata:
creationTimestamp: null
labels:
kubevirt-manager.io/managed: "true"
kubevirt.io/domain: fj-runner-01
spec:
architecture: amd64
domain:
clock:
timezone: "America/Chicago"
cpu:
cores: 4
sockets: 1
threads: 2
devices:
disks:
- disk: {}
- disk:
bus: virtio
name: disk1
bootOrder: 0
- disk: {}
name: disk2
bootOrder: 1
- cdrom:
bus: sata
name: nixosiso
interfaces:
- bridge: {}
name: net1
networkInterfaceMultiqueue: true
firmware:
# this sets the bootloader type
bootloader:
efi:
secureBoot: false
machine:
type: q35
resources:
@ -48,9 +46,9 @@ spec:
kubernetes.io/hostname: shadowfax
priorityClassName: vm-standard
volumes:
- name: disk1
persistentVolumeClaim:
claimName: fj-runner-01-disk1
- dataVolume:
name: default-fj-runner-01-disk1
name: disk1
- dataVolume:
name: default-fj-runner-01-disk2
name: disk2
name: "nixos-minimal"
name: nixosiso

View file

@ -0,0 +1,15 @@
# yaml-language-server: $schema=https://ks.hsn.dev/cdi.kubevirt.io/datavolume_v1beta1.json
apiVersion: cdi.kubevirt.io/v1beta1
kind: DataVolume
metadata:
name: "fj-runner-02-disk1"
spec:
storage:
resources:
requests:
storage: 80Gi
storageClassName: "openebs-zfs"
accessModes:
- "ReadWriteOnce"
source:
blank: {}

View file

@ -0,0 +1,54 @@
---
# yaml-language-server: $schema=https://ks.hsn.dev/kubevirt.io/virtualmachine_v1.json
apiVersion: kubevirt.io/v1
kind: VirtualMachine
metadata:
name: fj-runner-02
namespace: default
spec:
running: false
template:
spec:
architecture: amd64
domain:
clock:
timezone: "America/Chicago"
cpu:
cores: 4
sockets: 1
threads: 2
devices:
disks:
- disk:
bus: virtio
name: disk1
- cdrom:
bus: sata
name: nixosiso
interfaces:
- bridge: {}
name: net1
networkInterfaceMultiqueue: true
firmware:
# this sets the bootloader type
bootloader:
efi:
secureBoot: false
machine:
type: q35
resources:
requests:
memory: 8Gi
networks:
- name: net1
pod: {}
nodeSelector:
kubernetes.io/hostname: shadowfax
priorityClassName: vm-standard
volumes:
- dataVolume:
name: fj-runner-02-disk1
name: disk1
- dataVolume:
name: "nixos-minimal"
name: nixosiso