| Giorgi Lekveishvili | 4ec4c02 | 2024-08-17 15:09:24 +0400 | [diff] [blame] | 1 | apiVersion: v1 |
| 2 | kind: Service |
| 3 | metadata: |
| 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 }} |
| 15 | spec: |
| 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 |