blob: 13c3f529004f56cc3ef2322bc3b7a8ed5bb14c08 [file] [log] [blame]
giolekva716efb92022-05-07 23:08:58 +04001apiVersion: v1
2kind: Service
3metadata:
4 name: soft-serve
5 namespace: {{ .Release.Namespace }}
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +04006 annotations:
Giorgi Lekveishvili5f7d4412023-07-11 17:45:11 +04007 {{ if .Values.reservedIP }}
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +04008 metallb.universe.tf/loadBalancerIPs: {{ .Values.reservedIP }}
Giorgi Lekveishvili5f7d4412023-07-11 17:45:11 +04009 {{ end }}
10 {{ if .Values.addressPool }}
11 metallb.universe.tf/address-pool: {{ .Values.addressPool }}
12 {{ end }}
giolekva716efb92022-05-07 23:08:58 +040013spec:
14 type: LoadBalancer
15 selector:
16 app: soft-serve
17 ports:
18 - name: ssh
19 port: {{ .Values.port }}
20 protocol: TCP
Giorgi Lekveishvili5f7d4412023-07-11 17:45:11 +040021 {{ if .Values.ingress.enabled }}
22 - name: http
23 port: 80
24 targetPort: http
25 protocol: TCP
26 {{ end }}