26 lines
686 B
YAML
26 lines
686 B
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ include "stalwart-mail.fullname" . }}
|
|
labels:
|
|
{{- include "stalwart-mail.labels" . | nindent 4 }}
|
|
{{- with .Values.service.annotations }}
|
|
annotations:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
{{- with .Values.service }}
|
|
type: {{ .type }}
|
|
ipFamilyPolicy: {{ .ipFamilyPolicy }}
|
|
ipFamilies:
|
|
{{- toYaml .ipFamilies | nindent 4 }}
|
|
ports:
|
|
{{- range $name, $port := .ports }}
|
|
- port: {{ $port }}
|
|
targetPort: {{ $name }}
|
|
protocol: TCP
|
|
name: {{ $name }}
|
|
{{- end }}
|
|
{{- end }}{{/* end-with .service */}}
|
|
selector:
|
|
{{- include "stalwart-mail.selectorLabels" . | nindent 4 }}
|