Added fortios to VM for testing

This commit is contained in:
maximilian.bartz 2025-06-25 11:01:17 +02:00
parent ad92d3393a
commit 4ac200e1dc
3 changed files with 90 additions and 0 deletions

18
firewall/ks-vm.yaml Normal file
View file

@ -0,0 +1,18 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: &app fortigate
namespace: ${TENANT_NAMESPACE}
spec:
commonMetadata:
labels:
app.kubernetes.io/name: *app
path: ./firewall/vm
prune: true
sourceRef:
kind: GitRepository
name: tenant-repos
wait: false
interval: 30m
retryInterval: 1m
timeout: 5m

View file

@ -0,0 +1,71 @@
apiVersion: kubevirt.io/v1
kind: VirtualMachine
metadata:
name: fortigate
namespace: ${TENANT_NAMESPACE}
spec:
dataVolumeTemplates:
- metadata:
name: fortigate-rootdisk
spec:
source:
http:
url: http://nginx.demo.svc.cluster.local:8080/fortios_v7_6_3.qcow2
storage:
resources:
requests:
storage: 20Gi
runStrategy: Always
template:
metadata:
labels:
kubevirt.io/domain: fortigate
spec:
domain:
cpu:
cores: 2
memory:
guest: 4Gi
features:
acpi: {}
smm:
enabled: true
firmware:
bootloader:
efi: {}
devices:
rng: {}
networkInterfaceMultiqueue: true
interfaces:
- name: default
masquerade: {}
ports:
- port: 8080
- port: 443
- port: 22
disks:
- disk:
bus: sata
name: rootdisk
# - disk:
# bus: scsi
# name: cloudinitdisk
resources:
requests:
memory: 4Gi
cpu: 2
limits:
memory: 4Gi
cpu: 2
networks:
- name: default
pod: {}
terminationGracePeriodSeconds: 180
volumes:
- name: rootdisk
dataVolume:
name: fortigate-rootdisk
#- name: cloudinitdisk
# cloudInitNoCloud:
# secretRef:
# name: windows-cloud-init

View file

@ -4,6 +4,7 @@ resources:
- vars/ks.yaml
- repos/ks.yaml
- network/ks-lb.yaml
- firewall/ks-vm.yaml
- windows-vm-standard/ks-vm.yaml
- windows-vm-standard/ks-pvc.yaml
- windows-vm-standard-dev/ks-vm.yaml