Created
September 19, 2025 12:41
-
-
Save kobutton/30f99c7e5745ad396cab5c6eed8770e7 to your computer and use it in GitHub Desktop.
assisted-ocp-on-ocpv-template.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| apiVersion: kubevirt.io/v1 | |
| kind: VirtualMachine | |
| metadata: | |
| name: {{ hostname }} | |
| spec: | |
| dataVolumeTemplates: | |
| - metadata: | |
| name: {{ hostname }}-rootdisk | |
| spec: | |
| source: | |
| blank: {} | |
| storage: | |
| accessModes: | |
| - ReadWriteMany | |
| resources: | |
| requests: | |
| storage: 160Gi | |
| volumeMode: Block | |
| storageClassName: {{ storageClassName }} | |
| - metadata: | |
| name: {{ hostname }}-discovery | |
| spec: | |
| storage: | |
| resources: | |
| requests: | |
| storage: 4Gi #maybe needs more | |
| source: | |
| http: | |
| url: {{ url of boot iso }} # Might need addtional CA config | |
| runStragety: Halted | |
| template: | |
| spec: | |
| architecture: amd64 | |
| domain: | |
| cpu: | |
| cores: 1 # Cores/Socket | |
| sockets: 8 | |
| threads: 1 # Threads/Core | |
| devices: | |
| disks: | |
| - bootOrder: 1 # Boot Root disk if its provisioned | |
| disk: | |
| bus: virtio | |
| name: rootdisk | |
| serial: rootdisk | |
| - bootOrder: 2 # Boot From discovery iso if rootdisk fails to boot | |
| cdrom: | |
| bus: sata | |
| name: discovery | |
| interfaces: | |
| - bridge: {} | |
| model: virtio | |
| name: net0 | |
| logSerialConsole: 0 | |
| rng: {} | |
| features: | |
| acpi: {} | |
| smm: | |
| enabled: true | |
| firmware: | |
| bootloader: | |
| efi: {} | |
| machine: | |
| type: pc-q35-rhel9.4.0 | |
| memory: | |
| guest: 32Gi | |
| hostname: {{ hostname }} | |
| networks: | |
| - multus: | |
| networkname: {{ nad-name }} | |
| name: net0 | |
| terminationGracePeriod: 180 | |
| volumes: | |
| - dataVolumes: | |
| name: {{ hostname }}-rootdisk | |
| name: rootdisk | |
| - dataVolumes: | |
| name: {{ hostname }}-discovery | |
| name: discovery |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment