MQL5-Google-Onedrive/boat-house/kompose/chart/templates/service.yaml
copilot-swe-agent[bot] aaf34679c7 Add boat-house microservices system to project
Co-authored-by: Mouy-leng <199350297+Mouy-leng@users.noreply.github.com>
2026-02-10 06:28:01 +00:00

21 lines
498 B
YAML

{{- range $index, $svc := $.Values.serviceProfiles }}
{{- if has $svc.name $.Values.services }}
---
apiVersion: v1
kind: Service
metadata:
name: {{ $svc.name }}
labels:
rel: boat-house
spec:
type: {{ $svc.svcType }}
ports:
- port: {{ $svc.svcPort | default "80" }}
targetPort: {{ $svc.appPort }}
{{- if contains "NodePort" $svc.svcType }}
nodePort: {{ $svc.svcNodePort | default "{}" }}
{{- end }}
selector:
app: {{ $svc.name }}
{{- end }}
{{- end }}