-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvirtual-machine-2.yaml
70 lines (70 loc) · 1.67 KB
/
virtual-machine-2.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
apiVersion: kubevirt.io/v1
kind: VirtualMachine
metadata:
name: ubuntu-2204
namespace: cncf-webinar
labels:
kubevirt.io/vm: ubuntu-2204
spec:
dataVolumeTemplates:
- metadata:
name: ubuntu-2204-dv
spec:
pvc:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 50Gi
source:
registry:
url: >-
docker://gcr.io/spectro-images-public/release/vm-dashboard/os/ubuntu-container-disk:22.04
running: true
template:
metadata:
creationTimestamp: null
spec:
domain:
cpu:
cores: 2
devices:
disks:
- disk:
bus: virtio
name: datavolume-os
- disk:
bus: virtio
name: cloudinitdisk
interfaces:
- masquerade: {}
model: virtio
name: default
machine:
type: q35
resources:
limits:
cpu: 2
memory: 2Gi
requests:
cpu: 2
memory: 2Gi
networks:
- name: default
pod: {}
volumes:
- dataVolume:
name: ubuntu-2204-dv
name: datavolume-os
- cloudInitNoCloud:
userData: |
#cloud-config
ssh_pwauth: True
chpasswd: { expire: False }
password: spectro
disable_root: false
runcmd:
- apt-get update
- apt-get install -y qemu-guest-agent
- systemctl start qemu-guest-agent
name: cloudinitdisk