mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
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