stalwart-mail/templates/deployment.yaml

34 lines
1.2 KiB
YAML
Raw Normal View History

2024-06-10 09:09:21 +00:00
apiVersion: apps/v1
kind: Deployment
metadata:
2024-06-10 09:46:41 +00:00
name: { { include "stalwart-mail.fullname" . } }
labels: { { - include "stalwart-mail.labels" . | nindent 4 } }
2024-06-10 09:09:21 +00:00
spec:
2024-06-10 09:46:41 +00:00
replicas: { { .Values.replicaCount } }
2024-06-10 09:09:21 +00:00
selector:
2024-06-10 09:46:41 +00:00
matchLabels: { { - include "stalwart-mail.selectorLabels" . | nindent 6 } }
2024-06-10 09:09:21 +00:00
template:
metadata:
2024-06-10 09:46:41 +00:00
labels: { { - include "stalwart-mail.selectorLabels" . | nindent 8 } }
2024-06-10 09:09:21 +00:00
spec:
containers:
2024-06-10 09:33:33 +00:00
- name: stalwart-mail
2024-06-10 09:46:41 +00:00
image: '{{ .Values.image.repository }}:{{ .Values.image.tag }}'
imagePullPolicy: { { .Values.image.pullPolicy } }
2024-06-10 09:09:21 +00:00
ports:
2024-06-10 09:33:33 +00:00
- containerPort: 8080
- containerPort: 443
- containerPort: 25
- containerPort: 587
- containerPort: 465
- containerPort: 143
- containerPort: 993
- containerPort: 4190
2024-06-10 09:09:21 +00:00
volumeMounts:
2024-06-10 09:33:33 +00:00
- name: stalwart-volume
2024-06-10 09:46:41 +00:00
mountPath: { { .Values.persistence.mountPath } }
2024-06-10 09:09:21 +00:00
volumes:
2024-06-10 09:33:33 +00:00
- name: stalwart-volume
2024-06-10 09:09:21 +00:00
persistentVolumeClaim:
2024-06-10 09:46:41 +00:00
claimName: { { .Values.persistence.existingClaim | default (include "stalwart-mail.fullname" .) } }