blob: 9d64333353d78cb149977289b1af9443a431ef4d [file] [log] [blame]
giolekva716efb92022-05-07 23:08:58 +04001apiVersion: v1
2kind: Service
3metadata:
4 name: soft-serve
5 namespace: {{ .Release.Namespace }}
Giorgi Lekveishviliaa0b1792023-11-28 17:56:57 +04006 {{ if eq .Values.serviceType "LoadBalancer" }}
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +04007 annotations:
Giorgi Lekveishvili5f7d4412023-07-11 17:45:11 +04008 {{ if .Values.reservedIP }}
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +04009 metallb.universe.tf/loadBalancerIPs: {{ .Values.reservedIP }}
Giorgi Lekveishvili5f7d4412023-07-11 17:45:11 +040010 {{ end }}
11 {{ if .Values.addressPool }}
12 metallb.universe.tf/address-pool: {{ .Values.addressPool }}
13 {{ end }}
Giorgi Lekveishviliaa0b1792023-11-28 17:56:57 +040014 {{ end }}
giolekva716efb92022-05-07 23:08:58 +040015spec:
Giorgi Lekveishviliaa0b1792023-11-28 17:56:57 +040016 type: {{ .Values.serviceType }}
giolekva716efb92022-05-07 23:08:58 +040017 selector:
18 app: soft-serve
19 ports:
20 - name: ssh
gio24312cc2025-04-20 15:53:15 +040021 port: {{ .Values.sshPort }}
giolekva716efb92022-05-07 23:08:58 +040022 protocol: TCP
Giorgi Lekveishvili5f7d4412023-07-11 17:45:11 +040023 - name: http
gio24312cc2025-04-20 15:53:15 +040024 port: {{ .Values.httpPort }}
Giorgi Lekveishvili5f7d4412023-07-11 17:45:11 +040025 targetPort: http
26 protocol: TCP