-
Notifications
You must be signed in to change notification settings - Fork 0
/
opensmtpd.yaml
68 lines (68 loc) · 1.45 KB
/
opensmtpd.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
apiVersion: apps/v1
kind: DaemonSet
metadata:
labels:
app: opensmtpd
name: opensmtpd
spec:
selector:
matchLabels:
app: opensmtpd
template:
metadata:
labels:
app: opensmtpd
spec:
containers:
- name: opensmtpd
image: wuvt/opensmtpd:latest
ports:
- containerPort: 25
volumeMounts:
- name: opensmtpd-config
subPath: smtpd.conf
mountPath: /etc/smtpd/smtpd.conf
readOnly: true
- name: opensmtpd-config
subPath: mailname
mountPath: /etc/smtpd/mailname
readOnly: true
- name: opensmtpd-config
subPath: sources
mountPath: /etc/smtpd/sources
readOnly: true
- name: opensmtpd-tls
mountPath: /etc/ssl/smtpd
readOnly: true
- name: spool-smtpd
mountPath: /var/spool/smtpd
volumes:
- name: opensmtpd-config
secret:
secretName: opensmtpd
- name: opensmtpd-tls
secret:
secretName: opensmtpd.tls
items:
- key: tls.crt
path: cert.pem
- key: tls.key
path: privkey.pem
mode: 384
- name: spool-smtpd
hostPath:
path: /var/spool/smtpd
---
apiVersion: v1
kind: Service
metadata:
name: opensmtpd
labels:
app: opensmtpd
spec:
selector:
app: opensmtpd
ports:
- name: smtp
protocol: TCP
port: 25