diff --git a/charts/postfix/v0.1.0/templates/app.yaml b/charts/postfix/v0.1.0/templates/app.yaml index 8039231..02727e3 100644 --- a/charts/postfix/v0.1.0/templates/app.yaml +++ b/charts/postfix/v0.1.0/templates/app.yaml @@ -8,6 +8,9 @@ spec: {{- if not .Values.autoscaling.enabled }} replicas: {{ .Values.replicaCount }} {{- end }} + {{- if (eq .Values.postfix.kind "StatefulSet") }} + serviceName: {{ include "postfix.fullname" . }} + {{- end }} selector: matchLabels: {{- include "postfix.selectorLabels" . | nindent 6 }}