home-server-helm/templates/service.yaml

16 lines
428 B
YAML
Raw Normal View History

2023-11-12 16:02:19 -05:00
---
apiVersion: v1
kind: Service
metadata:
name: {{ .Values.name }}
spec:
selector:
app: {{ .Values.name }}
ports:
{{- range .Values.ports}}
- protocol: {{ .protocol | default "TCP" }}
port: {{ .containerPort }}
targetPort: {{ .targetPort | default .containerPort }}
name: {{ .containerPort }}-{{ .protocol | default "TCP" | lower }}-{{ .targetPort | default .containerPort }}
{{- end }}