| 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 |
| Giorgi Lekveishvili | 06a6791 | 2025-04-20 15:56:03 +0400 | [diff] [blame] | 21 | port: {{ .Values.sshPort }} |
| Giorgi Lekveishvili | 4ec4c02 | 2024-08-17 15:09:24 +0400 | [diff] [blame] | 22 | protocol: TCP |
| 23 | - name: http |
| Giorgi Lekveishvili | 06a6791 | 2025-04-20 15:56:03 +0400 | [diff] [blame] | 24 | port: {{ .Values.httpPort }} |
| Giorgi Lekveishvili | 4ec4c02 | 2024-08-17 15:09:24 +0400 | [diff] [blame] | 25 | targetPort: http |
| 26 | protocol: TCP |