Adding x86_64 forgejo runners to kubevirt
This commit is contained in:
parent
edd0eea29c
commit
9b6c7ff93c
4 changed files with 99 additions and 20 deletions
12
kubernetes/apps/kubevirt/vms/fj-runner-01-disk1.yaml
Normal file
12
kubernetes/apps/kubevirt/vms/fj-runner-01-disk1.yaml
Normal 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
|
|
@ -5,37 +5,35 @@ kind: VirtualMachine
|
||||||
metadata:
|
metadata:
|
||||||
name: fj-runner-01
|
name: fj-runner-01
|
||||||
namespace: default
|
namespace: default
|
||||||
uid: e0725361-eb07-44bc-bb01-7a1dba39622a
|
|
||||||
labels:
|
|
||||||
kubevirt-manager.io/managed: "true"
|
|
||||||
kubevirt.io/domain: fj-runner-01
|
|
||||||
spec:
|
spec:
|
||||||
running: true
|
running: false
|
||||||
template:
|
template:
|
||||||
metadata:
|
|
||||||
creationTimestamp: null
|
|
||||||
labels:
|
|
||||||
kubevirt-manager.io/managed: "true"
|
|
||||||
kubevirt.io/domain: fj-runner-01
|
|
||||||
spec:
|
spec:
|
||||||
architecture: amd64
|
architecture: amd64
|
||||||
domain:
|
domain:
|
||||||
|
clock:
|
||||||
|
timezone: "America/Chicago"
|
||||||
cpu:
|
cpu:
|
||||||
cores: 4
|
cores: 4
|
||||||
sockets: 1
|
sockets: 1
|
||||||
threads: 2
|
threads: 2
|
||||||
devices:
|
devices:
|
||||||
disks:
|
disks:
|
||||||
- disk: {}
|
- disk:
|
||||||
|
bus: virtio
|
||||||
name: disk1
|
name: disk1
|
||||||
bootOrder: 0
|
- cdrom:
|
||||||
- disk: {}
|
bus: sata
|
||||||
name: disk2
|
name: nixosiso
|
||||||
bootOrder: 1
|
|
||||||
interfaces:
|
interfaces:
|
||||||
- bridge: {}
|
- bridge: {}
|
||||||
name: net1
|
name: net1
|
||||||
networkInterfaceMultiqueue: true
|
networkInterfaceMultiqueue: true
|
||||||
|
firmware:
|
||||||
|
# this sets the bootloader type
|
||||||
|
bootloader:
|
||||||
|
efi:
|
||||||
|
secureBoot: false
|
||||||
machine:
|
machine:
|
||||||
type: q35
|
type: q35
|
||||||
resources:
|
resources:
|
||||||
|
@ -48,9 +46,9 @@ spec:
|
||||||
kubernetes.io/hostname: shadowfax
|
kubernetes.io/hostname: shadowfax
|
||||||
priorityClassName: vm-standard
|
priorityClassName: vm-standard
|
||||||
volumes:
|
volumes:
|
||||||
|
- name: disk1
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: fj-runner-01-disk1
|
||||||
- dataVolume:
|
- dataVolume:
|
||||||
name: default-fj-runner-01-disk1
|
name: "nixos-minimal"
|
||||||
name: disk1
|
name: nixosiso
|
||||||
- dataVolume:
|
|
||||||
name: default-fj-runner-01-disk2
|
|
||||||
name: disk2
|
|
||||||
|
|
15
kubernetes/apps/kubevirt/vms/fj-runner-02-disk1.yaml
Normal file
15
kubernetes/apps/kubevirt/vms/fj-runner-02-disk1.yaml
Normal 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: {}
|
54
kubernetes/apps/kubevirt/vms/fj-runner-02.yaml
Normal file
54
kubernetes/apps/kubevirt/vms/fj-runner-02.yaml
Normal 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
|
Loading…
Reference in a new issue