· 5 years ago · Mar 14, 2020, 11:52 PM
1apiVersion: apps/v1
2
3kind: Deployment
4metadata:
5 name: mailu-dovecot
6spec:
7 selector:
8 matchLabels:
9 app: mailu
10 component: dovecot
11 replicas: 1
12 template:
13 metadata:
14 labels:
15 app: mailu
16 component: dovecot
17 spec:
18 containers:
19 - name: admin
20 image: dockeregistry.thesimonet.org:4043/mailu/dovecot:local
21 imagePullPolicy: Always
22 volumeMounts:
23 - name: data
24 subPath: dovecotdata
25 mountPath: /data
26 - name: data
27 mountPath: /mail
28 subPath: dovecotmail
29 env:
30 - name: LOG_LEVEL
31 value: WARNING
32 - name: FRONT_ADDRESS
33 value: mailu-front.default.svc.cluster.local
34 - name: ADMIN_ADDRESS
35 value: mailu-admin.default.svc.cluster.local
36 - name: ANTISPAM_WEBUI_ADDRESS
37 value: mailu-rspamd:11334
38 - name: POSTMASTER
39 value: postmaster
40 - name: DOMAIN
41 value: "thesimonet.org"
42 - name: HOSTNAMES
43 value: "mail.thesimonet.org,www.thesimonet.org,thesimonet.org,zm.thesimonet.org"
44 - name: RECIPIENT_DELIMITER
45 value: +
46 # TODO: COMPRESSION / COMPRESS_LEVEL -> documentation?
47
48 # TODO: next entries should be removed when https://github.com/Mailu/Mailu/issues/1112 is fixed
49 - name: REDIS_ADDRESS
50 value: mailu-redis.default.svc.cluster.local
51 - name: WEBMAIL
52 value: none
53 - name: SECRET_KEY
54 value: "dsfkjhfdsljfs"
55 ports:
56 - name: auth
57 containerPort: 2102
58 protocol: TCP
59 - name: lmtp
60 containerPort: 2525
61 protocol: TCP
62 - name: imap
63 containerPort: 143
64 protocol: TCP
65 - name: pop3
66 containerPort: 110
67 protocol: TCP
68 - name: sieve
69 containerPort: 4190
70 protocol: TCP
71 resources:
72 limits:
73 cpu: 500m
74 memory: 500Mi
75 requests:
76 cpu: 500m
77 memory: 500Mi
78 livenessProbe:
79 exec:
80 command:
81 - sh
82 - -c
83 - 'echo QUIT|nc localhost 110|grep "Dovecot ready."'
84 periodSeconds: 10
85 failureThreshold: 30
86 timeoutSeconds: 5
87 readinessProbe:
88 exec:
89 command:
90 - sh
91 - -c
92 - 'echo QUIT|nc localhost 110|grep "Dovecot ready."'
93 periodSeconds: 10
94 failureThreshold: 3
95 timeoutSeconds: 5
96 volumes:
97 - name: data
98 persistentVolumeClaim:
99 claimName: mailu-storage
100 strategy:
101 type: RollingUpdate
102 rollingUpdate:
103 maxUnavailable: 0
104 maxSurge: 1