| gio | 5449e27 | 2025-07-23 13:14:01 +0400 | [diff] [blame^] | 1 | {{- if and (eq .Values.service.type "LoadBalancer") (.Values.ingress.enabled) }} |
| 2 | apiVersion: v1 | ||||
| 3 | kind: Service | ||||
| 4 | metadata: | ||||
| 5 | name: {{ include "excalidraw.fullname" . }} | ||||
| 6 | labels: | ||||
| 7 | {{- include "excalidraw.labels" . | nindent 4 }} | ||||
| 8 | spec: | ||||
| 9 | type: LoadBalancer | ||||
| 10 | ports: | ||||
| 11 | - port: {{ .Values.service.port }} | ||||
| 12 | targetPort: http | ||||
| 13 | protocol: TCP | ||||
| 14 | name: http | ||||
| 15 | selector: | ||||
| 16 | {{- include "excalidraw.selectorLabels" . | nindent 4 }} | ||||
| 17 | {{- end }} | ||||