-
Notifications
You must be signed in to change notification settings - Fork 0
/
ubuntu-vm.yaml
46 lines (46 loc) · 1.01 KB
/
ubuntu-vm.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
apiVersion: kubevirt.io/v1
kind: VirtualMachine
metadata:
creationTimestamp: 2018-07-04T15:03:08Z
generation: 1
labels:
kubevirt.io/os: linux
name: ubuntu-vm
spec:
running: true
template:
metadata:
creationTimestamp: null
labels:
kubevirt.io/domain: ubuntu-vm
spec:
domain:
cpu:
cores: 2
devices:
disks:
- disk:
bus: virtio
name: disk0
- cdrom:
bus: sata
readonly: true
name: cloudinitdisk
machine:
type: q35
resources:
requests:
memory: 1024M
volumes:
- name: disk0
persistentVolumeClaim:
claimName: ubuntu-px-pvc
- cloudInitNoCloud:
userData: |
#cloud-config
hostname: ubuntu-vm
password: test123
chpasswd: { expire: False }
ssh_pwauth: True
disable_root: false
name: cloudinitdisk