webserver-k8s/kustomize/dovecot-deployment.yaml

57 lines
1.1 KiB
YAML

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:
app: dovecat
tier: imap
spec:
containers:
- image: git.altarik.fr/quentinlegot/dovecot:latest
name: dovecot
resources:
limits:
memory: "128Mi"
cpu: "500m"
ports:
- containerPort: 24
name: lmtp
- containerPort: 143
name: imap
- containerPort: 993
name: imaps
volumeMounts:
- name: dovecot-secrets
mountPath: "/etc/dovecot/secrets"
readOnly: true
- name: dovecot-persistent-storage
mountPath: "/home"
volumes:
- name: dovecot-persistent-storage
persistentVolumeClaim:
claimName: dovecot-pv-claim
- name: dovecot-secrets
secret:
secretName: dovecot-secrets
defaultMode: 292