From 003fea763ae9c4fa4d2c4025bd123a4318fccf8b Mon Sep 17 00:00:00 2001 From: Ari Sosnovsky Date: Sun, 2 Apr 2023 19:51:42 +0000 Subject: [PATCH] using postfix --- k8s/infra/authelia/templates/postfix.yaml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/k8s/infra/authelia/templates/postfix.yaml b/k8s/infra/authelia/templates/postfix.yaml index c26a8da..b1c842d 100644 --- a/k8s/infra/authelia/templates/postfix.yaml +++ b/k8s/infra/authelia/templates/postfix.yaml @@ -34,18 +34,17 @@ kind: Deployment metadata: name: postfix labels: - name: postfix + app: postfix spec: strategy: rollingUpdate: maxSurge: 1 maxUnavailable: 1 type: RollingUpdate - serviceName: "postfix" template: metadata: labels: - name: postfix + app: postfix annotations: postfix/env-checksum: "{{ .Values.smtp_configs | toJson | sha256sum }}" spec: @@ -67,4 +66,17 @@ spec: name: smtp restartPolicy: Always imagePullPolicy: IfNotPresent +--- +kind: Service +apiVersion: v1 +metadata: + name: postfix +spec: + selector: + app: postfix + type: ClusterIP + ports: + - name: smtp + port: 25 + targetPort: 25 {{ end }} \ No newline at end of file