From 31dd9f87145ce645009e014f12effdaf6bc679d7 Mon Sep 17 00:00:00 2001 From: Elisamara Aoki Goncalves Date: Tue, 3 Sep 2024 13:37:40 +0000 Subject: [PATCH] Hello World KubeVirt VM example yaml is incorrect Fix yaml file. Closes-bug: 2078817 Change-Id: If7561855925d0e7fafbdf45fc2bbab5702e609b5 Signed-off-by: Elisamara Aoki Goncalves --- .../hello-world-kubevirt-vm-05503659173c.rst | 50 +++++++++---------- 1 file changed, 24 insertions(+), 26 deletions(-) diff --git a/doc/source/kube-virt/hello-world-kubevirt-vm-05503659173c.rst b/doc/source/kube-virt/hello-world-kubevirt-vm-05503659173c.rst index 08db673b9..70d3f05b5 100644 --- a/doc/source/kube-virt/hello-world-kubevirt-vm-05503659173c.rst +++ b/doc/source/kube-virt/hello-world-kubevirt-vm-05503659173c.rst @@ -45,38 +45,36 @@ the |VM| via the console: apiVersion: kubevirt.io/v1 kind: VirtualMachine metadata: - labels: - kubevirt.io/vm: vm-cirros name: vm-cirros spec: running: false template: metadata: labels: - kubevirt.io/vm: vm-cirros - spec: - domain: - devices: - disks: - -disk: - bus: virtio - - name: containerdisk - disk: - bus: virtio - - name: cloudinitdisk - disk: - bus: virtio - resources: - requests: - memory: 64M - terminationGracePeriodSeconds: 0 - volumes: - - name: containerdisk - containerDisk: - image: kubevirt/cirros-container-disk-demo:latest - - name: cloudinitdisk - cloudInitNoCloud: - userDataBase64: IyEvYmluL3NoCmVjaG8gJ3ByaW50ZWQgZnJvbSBjbG91ZC1pbml0IHVzZXJkYXRhJwo= + kubevirt.io/domain: vm-cirros + spec: + domain: + cpu: + cores: 1 + devices: + disks: + - name: containerdisk + disk: + bus: virtio + - name: cloudinitdisk + disk: + bus: virtio + resources: + requests: + memory: 64M + terminationGracePeriodSeconds: 0 + volumes: + - name: containerdisk + containerDisk: + image: kubevirt/cirros-container-disk-demo:latest + - name: cloudinitdisk + cloudInitNoCloud: + userDataBase64: IyEvYmluL3NoCmVjaG8gJ3ByaW50ZWQgZnJvbSBjbG91ZC1pbml0IHVzZXJkYXRhJwo= #. Apply the ``yaml`` file to create the |VM| in a stopped state.