-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathdemo.yaml
38 lines (38 loc) · 867 Bytes
/
demo.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
apiVersion: kubevirt.io/v1
kind: VirtualMachine
metadata:
annotations:
name: demo-vm2
namespace: demo-vm
spec:
running: true
template:
metadata:
creationTimestamp: null
spec:
domain:
devices:
disks:
- disk:
bus: virtio
name: containerdisk
- disk:
bus: virtio
name: cloudinitdisk
rng: {}
machine:
type: pc-q35-rhel8.6.0
resources:
requests:
memory: 1024M
terminationGracePeriodSeconds: 0
volumes:
- containerDisk:
image: quay.io/containerdisks/fedora:latest
name: containerdisk
- cloudInitConfigDrive:
userData: |-
#cloud-config
password: fedora
chpasswd: { expire: False }
name: cloudinitdisk