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.
Now `make generate` will generate VM's definitions under `cluster/` instead of hard-coded examples. Signed-off-by: Lukianov Artyom <[email protected]>
- Loading branch information
Lukianov Artyom
committed
Apr 11, 2018
1 parent
a4a5194
commit e3893e7
Showing
30 changed files
with
679 additions
and
326 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
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,24 @@ | ||
apiVersion: kubevirt.io/v1alpha1 | ||
kind: VirtualMachine | ||
metadata: | ||
creationTimestamp: null | ||
name: vm-ephemeral | ||
spec: | ||
domain: | ||
devices: | ||
disks: | ||
- disk: | ||
bus: virtio | ||
name: registrydisk | ||
volumeName: registryvolume | ||
machine: | ||
type: "" | ||
resources: | ||
requests: | ||
memory: 64M | ||
terminationGracePeriodSeconds: 0 | ||
volumes: | ||
- name: registryvolume | ||
registryDisk: | ||
image: kubevirt/cirros-registry-disk-demo:devel | ||
status: {} |
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,31 @@ | ||
apiVersion: kubevirt.io/v1alpha1 | ||
kind: VirtualMachine | ||
metadata: | ||
creationTimestamp: null | ||
name: vm-fedora | ||
spec: | ||
domain: | ||
devices: | ||
disks: | ||
- disk: | ||
bus: virtio | ||
name: registrydisk | ||
volumeName: registryvolume | ||
- disk: | ||
bus: virtio | ||
name: cloudinitdisk | ||
volumeName: cloudinitvolume | ||
machine: | ||
type: "" | ||
resources: | ||
requests: | ||
memory: 1024M | ||
terminationGracePeriodSeconds: 0 | ||
volumes: | ||
- name: registryvolume | ||
registryDisk: | ||
image: kubevirt/fedora-cloud-registry-disk-demo:devel | ||
- cloudInitNoCloud: | ||
userDataBase64: IyEvYmluL3NoCgplY2hvICdwcmludGVkIGZyb20gY2xvdWQtaW5pdCB1c2VyZGF0YScK | ||
name: cloudinitvolume | ||
status: {} |
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,26 @@ | ||
apiVersion: kubevirt.io/v1alpha1 | ||
kind: VirtualMachine | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
kubevirt.io/flavor: small | ||
name: vm-flavor-small | ||
spec: | ||
domain: | ||
devices: | ||
disks: | ||
- disk: | ||
bus: virtio | ||
name: registrydisk | ||
volumeName: registryvolume | ||
machine: | ||
type: "" | ||
resources: | ||
requests: | ||
memory: 64M | ||
terminationGracePeriodSeconds: 0 | ||
volumes: | ||
- name: registryvolume | ||
registryDisk: | ||
image: kubevirt/cirros-registry-disk-demo:devel | ||
status: {} |
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,38 @@ | ||
apiVersion: kubevirt.io/v1alpha1 | ||
kind: VirtualMachine | ||
metadata: | ||
creationTimestamp: null | ||
name: vm-nocloud | ||
spec: | ||
domain: | ||
devices: | ||
disks: | ||
- disk: | ||
bus: virtio | ||
name: registrydisk | ||
volumeName: registryvolume | ||
- disk: | ||
bus: virtio | ||
name: cloudinitdisk | ||
volumeName: cloudinitvolume | ||
- disk: | ||
bus: virtio | ||
name: emptydisk | ||
volumeName: emptydiskvolume | ||
machine: | ||
type: "" | ||
resources: | ||
requests: | ||
memory: 64M | ||
terminationGracePeriodSeconds: 0 | ||
volumes: | ||
- name: registryvolume | ||
registryDisk: | ||
image: kubevirt/cirros-registry-disk-demo:devel | ||
- cloudInitNoCloud: | ||
userDataBase64: IyEvYmluL3NoCgplY2hvICdwcmludGVkIGZyb20gY2xvdWQtaW5pdCB1c2VyZGF0YScK | ||
name: cloudinitvolume | ||
- emptyDisk: | ||
capacity: 2Gi | ||
name: emptydiskvolume | ||
status: {} |
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 |
---|---|---|
@@ -1,20 +1,24 @@ | ||
apiVersion: kubevirt.io/v1alpha1 | ||
kind: VirtualMachine | ||
metadata: | ||
creationTimestamp: null | ||
name: vm-pvc | ||
spec: | ||
terminationGracePeriodSeconds: 0 | ||
domain: | ||
resources: | ||
requests: | ||
memory: 64M | ||
devices: | ||
disks: | ||
- name: mydisk | ||
- disk: | ||
bus: virtio | ||
name: pvcdisk | ||
volumeName: pvcvolume | ||
disk: | ||
dev: vda | ||
machine: | ||
type: "" | ||
resources: | ||
requests: | ||
memory: 64M | ||
terminationGracePeriodSeconds: 0 | ||
volumes: | ||
- name: pvcvolume | ||
persistentVolumeClaim: | ||
claimName: disk-alpine | ||
- name: pvcvolume | ||
persistentVolumeClaim: | ||
claimName: disk-alpine | ||
status: {} |
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,24 @@ | ||
apiVersion: kubevirt.io/v1alpha1 | ||
kind: VirtualMachine | ||
metadata: | ||
creationTimestamp: null | ||
name: vm-sata | ||
spec: | ||
domain: | ||
devices: | ||
disks: | ||
- disk: | ||
bus: sata | ||
name: registrydisk | ||
volumeName: registryvolume | ||
machine: | ||
type: "" | ||
resources: | ||
requests: | ||
memory: 64M | ||
terminationGracePeriodSeconds: 0 | ||
volumes: | ||
- name: registryvolume | ||
registryDisk: | ||
image: kubevirt/cirros-registry-disk-demo:devel | ||
status: {} |
50 changes: 27 additions & 23 deletions
50
cluster/windows-demo.yaml → cluster/examples/vm-windows.yaml
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 |
---|---|---|
@@ -1,42 +1,46 @@ | ||
apiVersion: kubevirt.io/v1alpha1 | ||
kind: VirtualMachine | ||
metadata: | ||
name: windows2012r2 | ||
creationTimestamp: null | ||
name: vm-windows | ||
spec: | ||
terminationGracePeriodSeconds: 0 | ||
domain: | ||
clock: | ||
timer: | ||
hpet: | ||
present: false | ||
hyperv: {} | ||
pit: | ||
tickPolicy: delay | ||
rtc: | ||
tickPolicy: catchup | ||
utc: {} | ||
cpu: | ||
cores: 2 | ||
devices: | ||
disks: | ||
- disk: | ||
bus: sata | ||
name: pvcdisk | ||
volumeName: pvcvolume | ||
features: | ||
acpi: {} | ||
apic: {} | ||
hyperv: | ||
relaxed: {} | ||
vapic: {} | ||
spinlocks: | ||
spinlocks: 8191 | ||
clock: | ||
utc: {} | ||
timer: | ||
hpet: | ||
present: false | ||
pit: | ||
tickPolicy: delay | ||
rtc: | ||
tickPolicy: catchup | ||
hyperv: {} | ||
vapic: {} | ||
firmware: | ||
uuid: 5d307ca9-b3ef-428c-8861-06e72d69f223 | ||
machine: | ||
type: "" | ||
resources: | ||
requests: | ||
memory: 512M | ||
devices: | ||
disks: | ||
- name: server2012r2 | ||
volumeName: server2012r2 | ||
disk: | ||
dev: vda | ||
memory: 2Gi | ||
terminationGracePeriodSeconds: 0 | ||
volumes: | ||
- name: server2012r2 | ||
persistentVolumeClaim: | ||
claimName: my-windows-image | ||
- name: pvcvolume | ||
persistentVolumeClaim: | ||
claimName: disk-windows | ||
status: {} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.