-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathfedora40-direct-dv.yml
53 lines (53 loc) · 1.25 KB
/
fedora40-direct-dv.yml
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
apiVersion: kubevirt.io/v1
kind: VirtualMachine
metadata:
name: fedora2
namespace: test100
spec:
dataVolumeTemplates:
- metadata:
name: fedora2-volume
spec:
source:
http:
url: https://download.fedoraproject.org/pub/fedora/linux/releases/40/Cloud/x86_64/images/Fedora-Cloud-Base-Generic.x86_64-40-1.14.qcow2
storage:
resources:
requests:
storage: 20Gi
volumeMode: Block
storageClassName: ocs-external-storagecluster-ceph-rbd-virtualization
running: true
template:
spec:
architecture: amd64
domain:
cpu:
cores: 1
sockets: 1
threads: 1
devices:
disks:
- disk:
bus: virtio
name: fedora2-disk
- disk:
bus: virtio
name: cloudinitdisk
machine:
type: pc-q35-rhel9.2.0
resources:
requests:
memory: 4Gi
volumes:
- dataVolume:
name: fedora2-volume
name: fedora2-disk
- cloudInitConfigDrive:
userData: |
#cloud-config
user: fedora2
password: redhat123
chpasswd:
expire: false
name: cloudinitdisk