-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommunity-playbook-vm-datavolume.yaml
56 lines (55 loc) · 1.42 KB
/
community-playbook-vm-datavolume.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
---
- hosts: localhost
connection: local
gather_facts: false
vars:
namespace: demo-cluster-disco
tasks:
- name: VM
community.kubevirt.kubevirt_vm:
state: running
name: beryllium
namespace: "{{ namespace }}"
memory: 4Gi
cpu_cores: 4
interfaces:
- bridge: {}
# macAddress: 02:d8:6d:00:00:12
model: virtio
name: coe
network:
multus:
networkName: coe-bridge
- bridge: {}
# macAddress: 02:d8:6d:00:00:13
model: virtio
name: disco
network:
multus:
networkName: coe-br-vlan-69
datavolumes:
- name: beryllium-root
pvc:
accessModes:
- ReadWriteMany
storageClassName: coe-netapp-nas
storage: 80Gi
source:
blank: {}
disks:
# - name: root
# bootOrder: 1
# volume:
# dataVolume:
# name: beryllium-root
# # persistentVolumeClaim:
# # claimName: beryllium-rootdisk
# disk:
# bus: virtio
- name: cdrom
bootOrder: 2
volume:
persistentVolumeClaim:
claimName: beryllium-1-i386-hybrid
cdrom:
bus: sata