Hello World KubeVirt VM example yaml is incorrect
Fix yaml file. Closes-bug: 2078817 Change-Id: If7561855925d0e7fafbdf45fc2bbab5702e609b5 Signed-off-by: Elisamara Aoki Goncalves <elisamaraaoki.goncalves@windriver.com>
This commit is contained in:
@@ -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.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user