-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathubuntu-dv-vm.yaml
72 lines (72 loc) · 1.64 KB
/
ubuntu-dv-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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
apiVersion: kubevirt.io/v1
kind: VirtualMachine
metadata:
creationTimestamp: 2018-07-04T15:03:08Z
generation: 1
labels:
kubevirt.io/os: linux
name: ubuntu-vm-dv
spec:
running: true
template:
metadata:
creationTimestamp: null
labels:
kubevirt.io/domain: ubuntu-vm-dv
spec:
domain:
cpu:
cores: 2
devices:
interfaces:
- name: default
masquerade: {}
disks:
- disk:
bus: virtio
name: dvdisk0
- disk:
bus: virtio
name: disk1
- cdrom:
bus: sata
readonly: true
name: cloudinitdisk
machine:
type: q35
resources:
requests:
memory: 1024M
networks:
- name: default
pod: {}
volumes:
- dataVolume:
name: datavolumedisk0
name: dvdisk0
- name: disk1
persistentVolumeClaim:
claimName: cirros-px-pvc-block
- cloudInitNoCloud:
userData: |
#cloud-config
hostname: ubuntu-vm
password: test123
chpasswd: { expire: False }
ssh_pwauth: True
disable_root: false
name: cloudinitdisk
dataVolumeTemplates:
- metadata:
name: datavolumedisk0
spec:
source:
http:
url: "https://cloud-images.ubuntu.com/bionic/current/bionic-server-cloudimg-amd64.img"
pvc:
storageClassName: px-csi-db
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 5Gi