Merge "Hello World KubeVirt VM example yaml is incorrect"
This commit is contained in:
commit
e49ad3a5a4
@ -45,38 +45,36 @@ the |VM| via the console:
|
|||||||
apiVersion: kubevirt.io/v1
|
apiVersion: kubevirt.io/v1
|
||||||
kind: VirtualMachine
|
kind: VirtualMachine
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
|
||||||
kubevirt.io/vm: vm-cirros
|
|
||||||
name: vm-cirros
|
name: vm-cirros
|
||||||
spec:
|
spec:
|
||||||
running: false
|
running: false
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
kubevirt.io/vm: vm-cirros
|
kubevirt.io/domain: vm-cirros
|
||||||
spec:
|
spec:
|
||||||
domain:
|
domain:
|
||||||
devices:
|
cpu:
|
||||||
disks:
|
cores: 1
|
||||||
-disk:
|
devices:
|
||||||
bus: virtio
|
disks:
|
||||||
- name: containerdisk
|
- name: containerdisk
|
||||||
disk:
|
disk:
|
||||||
bus: virtio
|
bus: virtio
|
||||||
- name: cloudinitdisk
|
- name: cloudinitdisk
|
||||||
disk:
|
disk:
|
||||||
bus: virtio
|
bus: virtio
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
memory: 64M
|
memory: 64M
|
||||||
terminationGracePeriodSeconds: 0
|
terminationGracePeriodSeconds: 0
|
||||||
volumes:
|
volumes:
|
||||||
- name: containerdisk
|
- name: containerdisk
|
||||||
containerDisk:
|
containerDisk:
|
||||||
image: kubevirt/cirros-container-disk-demo:latest
|
image: kubevirt/cirros-container-disk-demo:latest
|
||||||
- name: cloudinitdisk
|
- name: cloudinitdisk
|
||||||
cloudInitNoCloud:
|
cloudInitNoCloud:
|
||||||
userDataBase64: IyEvYmluL3NoCmVjaG8gJ3ByaW50ZWQgZnJvbSBjbG91ZC1pbml0IHVzZXJkYXRhJwo=
|
userDataBase64: IyEvYmluL3NoCmVjaG8gJ3ByaW50ZWQgZnJvbSBjbG91ZC1pbml0IHVzZXJkYXRhJwo=
|
||||||
|
|
||||||
#. Apply the ``yaml`` file to create the |VM| in a stopped state.
|
#. Apply the ``yaml`` file to create the |VM| in a stopped state.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user