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:
|
||||
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'
|
||||
kubevirt_vm:
|
||||
state: absent
|
||||
|
|
Loading…
Reference in a new issue