53 lines
1.0 KiB
YAML
53 lines
1.0 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
|
||
|
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
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|