blob: bfbfa2b12d220705d0986ad2e268b6aee14cf266 [file] [log] [blame]
Giorgi Lekveishvili330c5542024-08-26 08:34:08 +04001apiVersion: kubevirt.io/v1
2kind: VirtualMachine
3metadata:
4 labels:
5 kubevirt.io/os: linux
6 name: {{ .Values.name }}
7spec:
8 running: true
9 template:
10 metadata:
11 creationTimestamp: null
12 labels:
13 kubevirt.io/domain: debian
Giorgi Lekveishvili807a5312024-08-26 09:33:41 +040014 app: {{ .Values.name }}
Giorgi Lekveishvili330c5542024-08-26 08:34:08 +040015 spec:
16 domain:
17 cpu:
18 cores: {{ .Values.cpuCores }}
19 resources:
20 limits:
21 memory: {{ .Values.memory }}
22 devices:
23 interfaces:
Giorgi Lekveishvili64cb6e32024-08-27 08:26:04 +040024 - name: default
Giorgi Lekveishvili79a5eb02024-09-02 14:42:28 +040025 # masquerade: {}
26 bridge: {}
Giorgi Lekveishvili330c5542024-08-26 08:34:08 +040027 ports:
Giorgi Lekveishvili8af50922024-10-29 22:44:14 +040028 {{- range .Values.ports }}
29 - name: {{ .name }}
Giorgi Lekveishvilicc41e252024-10-29 22:56:33 +040030 port: {{ .value }}
Giorgi Lekveishvili8af50922024-10-29 22:44:14 +040031 protocol: {{ .protocol }}
32 {{- end }}
Giorgi Lekveishvili330c5542024-08-26 08:34:08 +040033 disks:
34 - name: disk0
35 disk:
36 bus: virtio
37 - name: cloudinitdisk
38 disk:
39 bus: virtio
40 readonly: true
Giorgi Lekveishvili4cd22e32025-04-20 07:26:59 +040041 - name: configs
Giorgi Lekveishvili4cd22e32025-04-20 07:26:59 +040042 disk:
Giorgi Lekveishvili11e0dfb2025-04-20 07:36:14 +040043 bus: virtio
44 readonly: true
45 serial: CVLY623300HK240D
Giorgi Lekveishvili330c5542024-08-26 08:34:08 +040046 networks:
47 - name: default
48 pod: {}
49 volumes:
50 - name: disk0
51 persistentVolumeClaim:
52 claimName: dv-{{ .Values.name }}
53 - name: cloudinitdisk
54 cloudInitNoCloud:
Giorgi Lekveishvili4f27a0f2024-09-03 22:15:33 +040055 secretRef:
Giorgi Lekveishvilif739d352024-09-03 22:02:40 +040056 name: {{ .Values.name }}-user-data
Giorgi Lekveishvili274cb552025-04-19 21:18:30 +040057 networkDataSecretRef:
58 name: {{ .Values.name }}-network-data
Giorgi Lekveishvili060fcfb2025-04-20 07:14:23 +040059 {{- if .Values.configFiles }}
60 - name: configs
61 configMap:
62 name: configs-{{ .Values.name }}
63 {{- end }}