webserver-k8s/kustomize/dovecot-deployment.yaml

55 lines
1.1 KiB
YAML
Raw Permalink Normal View History

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:
labels:
2023-10-09 16:20:14 +02:00
app: dovecot
tier: imap
spec:
containers:
- image: git.altarik.fr/quentinlegot/dovecot:latest
name: dovecot
resources:
limits:
memory: "128Mi"
2023-10-09 18:02:44 +02:00
cpu: "300m"
ports:
- containerPort: 24
name: lmtp
- containerPort: 143
name: imap
- containerPort: 993
name: imaps
volumeMounts:
- name: dovecot-persistent-storage
mountPath: "/etc/dovecot/secrets"
subPath: secrets
- name: dovecot-persistent-storage
subPath: storage
mountPath: "/home"
volumes:
- name: dovecot-persistent-storage
persistentVolumeClaim:
claimName: dovecot-pv-claim