blob: 9d64333353d78cb149977289b1af9443a431ef4d [file] [log] [blame]
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +04001apiVersion: v1
2kind: Service
3metadata:
4 name: soft-serve
5 namespace: {{ .Release.Namespace }}
6 {{ if eq .Values.serviceType "LoadBalancer" }}
7 annotations:
8 {{ if .Values.reservedIP }}
9 metallb.universe.tf/loadBalancerIPs: {{ .Values.reservedIP }}
10 {{ end }}
11 {{ if .Values.addressPool }}
12 metallb.universe.tf/address-pool: {{ .Values.addressPool }}
13 {{ end }}
14 {{ end }}
15spec:
16 type: {{ .Values.serviceType }}
17 selector:
18 app: soft-serve
19 ports:
20 - name: ssh
Giorgi Lekveishvili06a67912025-04-20 15:56:03 +040021 port: {{ .Values.sshPort }}
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +040022 protocol: TCP
23 - name: http
Giorgi Lekveishvili06a67912025-04-20 15:56:03 +040024 port: {{ .Values.httpPort }}
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +040025 targetPort: http
26 protocol: TCP