60 lines
1.2 KiB
YAML
60 lines
1.2 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:
|
|
labels:
|
|
app: dovecot
|
|
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
|
|
persistentVolumeClaim:
|
|
claimName: dovecot-pv-claim
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|