1
0
Fork 0
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:
Ondra Machacek 2019-04-30 21:41:50 +02:00 committed by Alicia Cozine
parent 7cf0626d7b
commit 7e3b1da33f

View file

@ -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