2023-10-05 16:26:51 +02:00
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: dovecot
|
|
|
|
labels:
|
|
|
|
app: dovecot
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
revisionHistoryLimit: 0
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: dovecot
|
|
|
|
tier: imap
|
|
|
|
strategy:
|
|
|
|
type: Recreate
|
|
|
|
template:
|
|
|
|
metadata:
|
2023-10-09 16:03:11 +02:00
|
|
|
labels:
|
2023-10-09 16:20:14 +02:00
|
|
|
app: dovecot
|
2023-10-09 16:03:11 +02:00
|
|
|
tier: imap
|
2023-10-05 16:26:51 +02:00
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- image: git.altarik.fr/quentinlegot/dovecot:latest
|
|
|
|
name: dovecot
|
2023-10-09 15:54:59 +02:00
|
|
|
resources:
|
|
|
|
limits:
|
|
|
|
memory: "128Mi"
|
2023-10-09 18:02:44 +02:00
|
|
|
cpu: "300m"
|
2023-10-05 16:26:51 +02:00
|
|
|
ports:
|
|
|
|
- containerPort: 24
|
|
|
|
name: lmtp
|
|
|
|
- containerPort: 143
|
|
|
|
name: imap
|
|
|
|
- containerPort: 993
|
|
|
|
name: imaps
|
|
|
|
volumeMounts:
|
2023-10-09 17:41:16 +02:00
|
|
|
- name: dovecot-persistent-storage
|
2023-10-05 16:26:51 +02:00
|
|
|
mountPath: "/etc/dovecot/secrets"
|
2023-10-09 17:41:16 +02:00
|
|
|
subPath: secrets
|
2023-10-05 16:26:51 +02:00
|
|
|
- name: dovecot-persistent-storage
|
2023-10-09 17:41:16 +02:00
|
|
|
subPath: storage
|
2023-10-05 16:26:51 +02:00
|
|
|
mountPath: "/home"
|
|
|
|
volumes:
|
|
|
|
- name: dovecot-persistent-storage
|
|
|
|
persistentVolumeClaim:
|
|
|
|
claimName: dovecot-pv-claim
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|