From 65208183de091ce322f171a94e70ddc79802b38e Mon Sep 17 00:00:00 2001 From: ties Date: Sun, 30 Mar 2025 11:41:52 +0000 Subject: [PATCH] Add deployment.yaml --- deployment.yaml | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 deployment.yaml diff --git a/deployment.yaml b/deployment.yaml new file mode 100644 index 0000000..c2f5461 --- /dev/null +++ b/deployment.yaml @@ -0,0 +1,48 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: {{ include "stalwart-mail.fullname" . }} + labels: + {{- include "stalwart-mail.labels" . | nindent 4 }} +spec: + replicas: {{ .Values.replicaCount }} + selector: + matchLabels: + {{- include "stalwart-mail.selectorLabels" . | nindent 6 }} + template: + metadata: + labels: + {{- include "stalwart-mail.selectorLabels" . | nindent 8 }} + spec: + containers: + - name: stalwart-mail + image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" + imagePullPolicy: {{ .Values.image.pullPolicy }} + livenessProbe: + httpGet: + path: /healthz/live + port: 8080 + initialDelaySeconds: 30 + periodSeconds: 10 + readinessProbe: + httpGet: + path: /healthz/ready + port: 8080 + initialDelaySeconds: 5 + periodSeconds: 10 + ports: + - containerPort: 8080 + - containerPort: 443 + - containerPort: 25 + - containerPort: 587 + - containerPort: 465 + - containerPort: 143 + - containerPort: 993 + - containerPort: 4190 + volumeMounts: + - name: stalwart-volume + mountPath: {{ .Values.persistence.mountPath }} + volumes: + - name: stalwart-volume + persistentVolumeClaim: + claimName: {{ include "stalwart-mail.fullname" . }} \ No newline at end of file