-
Notifications
You must be signed in to change notification settings - Fork 1
/
mail.yaml
73 lines (73 loc) · 1.47 KB
/
mail.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
---
#Service for mail
apiVersion: v1
kind: Service
metadata:
labels:
cerebri.service: mail
name: mail
spec:
clusterIP: None
ports:
- name: headless
port: 55555
targetPort: 0
selector:
cerebri.service: mail
---
#Deployment for mail
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
cerebri.service: mail
name: mail
spec:
replicas: 1
strategy:
type: Recreate
template:
metadata:
labels:
cerebri.service: mail
spec:
containers:
- env:
- name: SERVICE_NAME
value: smtp
- name: maildomain
value: muellerinc.com
- name: smtp_user
value: noreply:Cerebri01
- name: STATICA_URL
value: socks5://statica3986:6d49e9578e32ddaf@sl-ams-01-guido.statica.io:1080
image: cerebriai/postfix
name: mail
resources: {}
volumeMounts:
- mountPath: /etc/opendkim/domainkeys
name: liferay-mail-dkim
restartPolicy: Always
volumes:
- name: liferay-mail-dkim
persistentVolumeClaim:
claimName: liferay-mail-dkim
imagePullSecrets:
- name: cerebri-registry
---
#Persistent Volume Claim for mail
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
labels:
cerebri.service: liferay-mail-dkim
name: liferay-mail-dkim
spec:
accessModes:
- ReadWriteOnce
selector:
matchLabels:
assign-to: mail-dkim
resources:
requests:
storage: 100Mi