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
|
||||
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.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user