blob: ebb2fcb45bdecb010eab3d9306a24b18e7a43401 [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 Lekveishvilie01e2b72025-04-18 12:45:20 +040041 filesystems:
42 - name: configs
43 virtiofs: {}
Giorgi Lekveishvili330c5542024-08-26 08:34:08 +040044 networks:
45 - name: default
46 pod: {}
47 volumes:
48 - name: disk0
49 persistentVolumeClaim:
50 claimName: dv-{{ .Values.name }}
51 - name: cloudinitdisk
52 cloudInitNoCloud:
Giorgi Lekveishvili4f27a0f2024-09-03 22:15:33 +040053 secretRef:
Giorgi Lekveishvilif739d352024-09-03 22:02:40 +040054 name: {{ .Values.name }}-user-data
55 networkDataSecretRef:
56 name: {{ .Values.name }}-network-data
Giorgi Lekveishvilie01e2b72025-04-18 12:45:20 +040057 {{- if .Values.configFiles }}
58 - name: configs
59 configMap:
60 name: configs-{{ .Values.name }}
61 {{- end }}