kubevirt_vm: Add example how to use davatavolumes (#55906)
This commit is contained in:
parent
7cf0626d7b
commit
7e3b1da33f
1 changed files with 15 additions and 0 deletions
|
@ -195,6 +195,21 @@ EXAMPLES = '''
|
||||||
disk:
|
disk:
|
||||||
bus: virtio
|
bus: virtio
|
||||||
|
|
||||||
|
- name: Create virtual machine with datavolume
|
||||||
|
kubevirt_vm:
|
||||||
|
name: myvm
|
||||||
|
namespace: default
|
||||||
|
memory: 1024Mi
|
||||||
|
datavolumes:
|
||||||
|
- name: mydv
|
||||||
|
source:
|
||||||
|
http:
|
||||||
|
url: https://url/disk.qcow2
|
||||||
|
pvc:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
storage: 5Gi
|
||||||
|
|
||||||
- name: Remove virtual machine 'myvm'
|
- name: Remove virtual machine 'myvm'
|
||||||
kubevirt_vm:
|
kubevirt_vm:
|
||||||
state: absent
|
state: absent
|
||||||
|
|
Loading…
Add table
Reference in a new issue