mirror of
https://github.com/bokysan/docker-postfix.git
synced 2025-09-25 07:46:43 +08:00
23 lines
757 B
YAML
23 lines
757 B
YAML
{{- $chart := "mail" -}}
|
|
{{- $fullName := include (print $chart ".fullname") . -}}
|
|
{{- $labels := include (print $chart ".labels") . -}}
|
|
{{- $selectorLabels := include (print $chart ".selectorLabels") . -}}
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ $fullName | quote }}
|
|
labels:
|
|
{{- $labels | nindent 4 }}
|
|
{{- with .Values.service.labels }}{{ toYaml . | nindent 4 }}{{ end }}
|
|
annotations:
|
|
{{- with .Values.service.annotations }}{{ toYaml . | nindent 4 }}{{ end }}
|
|
spec:
|
|
type: {{ .Values.service.type }}
|
|
{{- with .Values.service.spec }}{{ toYaml . | nindent 2 }}{{ end }}
|
|
ports:
|
|
- port: {{ .Values.service.port }}
|
|
targetPort: smtp
|
|
protocol: TCP
|
|
name: smtp
|
|
selector:
|
|
{{- $selectorLabels | nindent 4 }}
|