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