forked from kubevirt/kubevirt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This change adds the following flavor and preference examples: - Small compute flavor (Both namespaced and cluster wide) - Large compute flavor - Virtio preferences - Windows preferences Variouis example VM definitions are also included. Signed-off-by: Lee Yarwood <[email protected]>
- Loading branch information
Showing
16 changed files
with
595 additions
and
38 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--- | ||
apiVersion: kubevirt.io/v1 | ||
kind: VirtualMachine | ||
metadata: | ||
labels: | ||
kubevirt.io/vm: vm-cirros-clarge-virtio | ||
name: vm-cirros-clarge-virtio | ||
spec: | ||
flavor: | ||
kind: VirtualMachineFlavor | ||
name: vmf-clarge | ||
preference: | ||
kind: VirtualMachinePreference | ||
name: vmpvirtio | ||
running: false | ||
template: | ||
metadata: | ||
labels: | ||
kubevirt.io/vm: vm-cirros-clarge-virtio | ||
spec: | ||
domain: | ||
devices: | ||
disks: | ||
- disk: {} | ||
name: containerdisk | ||
- disk: {} | ||
name: cloudinitdisk | ||
resources: {} | ||
terminationGracePeriodSeconds: 0 | ||
volumes: | ||
- containerDisk: | ||
image: registry:5000/kubevirt/cirros-container-disk-demo:devel | ||
name: containerdisk | ||
- cloudInitNoCloud: | ||
userData: | | ||
#!/bin/sh | ||
echo 'printed from cloud-init userdata' | ||
name: cloudinitdisk |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--- | ||
apiVersion: kubevirt.io/v1 | ||
kind: VirtualMachine | ||
metadata: | ||
labels: | ||
kubevirt.io/vm: vm-cirros-clarge-windows | ||
name: vm-cirros-clarge-windows | ||
spec: | ||
flavor: | ||
kind: VirtualMachineFlavor | ||
name: vmf-clarge | ||
preference: | ||
kind: VirtualMachinePreference | ||
name: vmpwindows | ||
running: false | ||
template: | ||
metadata: | ||
labels: | ||
kubevirt.io/vm: vm-cirros-clarge-windows | ||
spec: | ||
domain: | ||
devices: | ||
disks: | ||
- disk: {} | ||
name: containerdisk | ||
- disk: {} | ||
name: cloudinitdisk | ||
resources: {} | ||
terminationGracePeriodSeconds: 0 | ||
volumes: | ||
- containerDisk: | ||
image: registry:5000/kubevirt/cirros-container-disk-demo:devel | ||
name: containerdisk | ||
- cloudInitNoCloud: | ||
userData: | | ||
#!/bin/sh | ||
echo 'printed from cloud-init userdata' | ||
name: cloudinitdisk |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
apiVersion: kubevirt.io/v1 | ||
kind: VirtualMachine | ||
metadata: | ||
labels: | ||
kubevirt.io/vm: vm-cirros-clarge | ||
name: vm-cirros-clarge | ||
spec: | ||
flavor: | ||
kind: VirtualMachineFlavor | ||
name: vmf-clarge | ||
running: false | ||
template: | ||
metadata: | ||
labels: | ||
kubevirt.io/vm: vm-cirros-clarge | ||
spec: | ||
domain: | ||
devices: | ||
disks: | ||
- disk: {} | ||
name: containerdisk | ||
- disk: | ||
bus: virtio | ||
name: cloudinitdisk | ||
resources: {} | ||
terminationGracePeriodSeconds: 0 | ||
volumes: | ||
- containerDisk: | ||
image: registry:5000/kubevirt/cirros-container-disk-demo:devel | ||
name: containerdisk | ||
- cloudInitNoCloud: | ||
userData: | | ||
#!/bin/sh | ||
echo 'printed from cloud-init userdata' | ||
name: cloudinitdisk |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
apiVersion: kubevirt.io/v1 | ||
kind: VirtualMachine | ||
metadata: | ||
labels: | ||
kubevirt.io/vm: vm-cirros-csmall | ||
name: vm-cirros-csmall | ||
spec: | ||
flavor: | ||
kind: VirtualMachineFlavor | ||
name: vmf-csmall | ||
running: false | ||
template: | ||
metadata: | ||
labels: | ||
kubevirt.io/vm: vm-cirros-csmall | ||
spec: | ||
domain: | ||
devices: | ||
disks: | ||
- disk: {} | ||
name: containerdisk | ||
- disk: | ||
bus: virtio | ||
name: cloudinitdisk | ||
resources: {} | ||
terminationGracePeriodSeconds: 0 | ||
volumes: | ||
- containerDisk: | ||
image: registry:5000/kubevirt/cirros-container-disk-demo:devel | ||
name: containerdisk | ||
- cloudInitNoCloud: | ||
userData: | | ||
#!/bin/sh | ||
echo 'printed from cloud-init userdata' | ||
name: cloudinitdisk |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
apiVersion: kubevirt.io/v1 | ||
kind: VirtualMachine | ||
metadata: | ||
labels: | ||
kubevirt.io/vm: vm-cirros-csmall | ||
name: vm-cirros-csmall | ||
spec: | ||
flavor: | ||
kind: VirtualMachineClusterFlavor | ||
name: vmf-csmall | ||
running: false | ||
template: | ||
metadata: | ||
labels: | ||
kubevirt.io/vm: vm-cirros-csmall | ||
spec: | ||
domain: | ||
devices: | ||
disks: | ||
- disk: {} | ||
name: containerdisk | ||
- disk: | ||
bus: virtio | ||
name: cloudinitdisk | ||
resources: {} | ||
terminationGracePeriodSeconds: 0 | ||
volumes: | ||
- containerDisk: | ||
image: registry:5000/kubevirt/cirros-container-disk-demo:devel | ||
name: containerdisk | ||
- cloudInitNoCloud: | ||
userData: | | ||
#!/bin/sh | ||
echo 'printed from cloud-init userdata' | ||
name: cloudinitdisk |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
apiVersion: kubevirt.io/v1 | ||
kind: VirtualMachine | ||
metadata: | ||
labels: | ||
kubevirt.io/vm: vm-windows-clarge-windows | ||
name: vm-windows-clarge-windows | ||
spec: | ||
flavor: | ||
kind: VirtualMachineFlavor | ||
name: vmf-clarge | ||
preference: | ||
kind: VirtualMachinePreference | ||
name: vmpwindows | ||
running: false | ||
template: | ||
metadata: | ||
labels: | ||
kubevirt.io/vm: vm-windows-clarge-windows | ||
spec: | ||
domain: | ||
devices: | ||
disks: | ||
- disk: {} | ||
name: pvcdisk | ||
firmware: | ||
uuid: 5d307ca9-b3ef-428c-8861-06e72d69f223 | ||
resources: {} | ||
terminationGracePeriodSeconds: 0 | ||
volumes: | ||
- name: pvcdisk | ||
persistentVolumeClaim: | ||
claimName: disk-windows |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
apiVersion: flavor.kubevirt.io/v1alpha1 | ||
kind: VirtualMachineClusterFlavor | ||
metadata: | ||
name: vmcf-csmall | ||
spec: | ||
cpu: | ||
guest: 1 | ||
memory: | ||
guest: 128Mi |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
apiVersion: flavor.kubevirt.io/v1alpha1 | ||
kind: VirtualMachineFlavor | ||
metadata: | ||
name: vmf-clarge | ||
spec: | ||
cpu: | ||
guest: 4 | ||
memory: | ||
guest: 2Gi |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
apiVersion: flavor.kubevirt.io/v1alpha1 | ||
kind: VirtualMachineFlavor | ||
metadata: | ||
name: vmf-csmall | ||
spec: | ||
cpu: | ||
guest: 1 | ||
memory: | ||
guest: 128Mi |
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
apiVersion: flavor.kubevirt.io/v1alpha1 | ||
kind: VirtualMachinePreference | ||
metadata: | ||
name: vmpvirtio | ||
spec: | ||
devices: | ||
preferredDiskBus: virtio | ||
preferredInterfaceModel: virtio |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
apiVersion: flavor.kubevirt.io/v1alpha1 | ||
kind: VirtualMachinePreference | ||
metadata: | ||
name: vmpwindows | ||
spec: | ||
clock: | ||
preferredClockOffset: | ||
utc: {} | ||
preferredTimer: | ||
hpet: | ||
present: false | ||
hyperv: {} | ||
pit: | ||
tickPolicy: delay | ||
rtc: | ||
tickPolicy: catchup | ||
cpu: | ||
preferredCPUTopology: preferSockets | ||
devices: | ||
preferredDiskBus: sata | ||
preferredInterfaceModel: e1000 | ||
preferredTPM: {} | ||
features: | ||
preferredAcpi: {} | ||
preferredApic: {} | ||
preferredHyperv: | ||
relaxed: {} | ||
spinlocks: | ||
spinlocks: 8191 | ||
vapic: {} | ||
preferredSmm: {} | ||
firmware: | ||
preferredUseEfi: true | ||
preferredUseSecureBoot: true |
This file contains 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
This file contains 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
Oops, something went wrong.