blob: 9e54b469368a8f434a2a75354f8ee8750ca86311 [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
21 port: {{ .Values.port }}
22 protocol: TCP
23 - name: http
24 port: 80 # TODO(gio): make configurable
25 targetPort: http
26 protocol: TCP