-
Notifications
You must be signed in to change notification settings - Fork 1
/
virtual-machine-1-podnw.yaml
56 lines (56 loc) · 1.4 KB
/
virtual-machine-1-podnw.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
apiVersion: kubevirt.io/v1
kind: VirtualMachine
metadata:
name: ubuntu-2204-containerdisk
namespace: cncf-webinar
labels:
kubevirt.io/vm: ubuntu-2204-containerdisk
spec:
running: true
template:
metadata:
creationTimestamp: null
spec:
domain:
cpu:
cores: 2
devices:
disks:
- disk:
bus: virtio
name: containerdisk-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:
- containerDisk:
image: gcr.io/spectro-images-public/release/vm-dashboard/os/ubuntu-container-disk:22.04
name: containerdisk-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