-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpod.yaml
192 lines (191 loc) · 4.76 KB
/
pod.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
# Save the output of this file and use kubectl create -f to import
# it into Kubernetes.
#
# Created with podman-4.8.3
apiVersion: v1
kind: Pod
metadata:
labels:
app: email
name: email
spec:
containers:
- image: localhost/postfix:latest
name: email-postfix
ports:
- containerPort: 143
hostPort: 143
- containerPort: 465
hostPort: 465
- containerPort: 587
hostPort: 587
- containerPort: 993
hostPort: 993
- containerPort: 25
hostPort: 2525
- containerPort: 4190
hostPort: 4190
volumeMounts:
- mountPath: /dev/log
name: dev-log
- mountPath: /run/postfix/socket
name: sockets
- mountPath: /etc/postfix/ca.pem
name: etc-CA.pem
- mountPath: /etc/postfix/aliases.lmdb
name: postfix-aliases.lmdb
- mountPath: /etc/postfix/cert.pem
name: etc-fullchain.pem
- mountPath: /etc/postfix/key.pem
name: etc-privkey.pem
- mountPath: /etc/postfix/main.cf
name: postfix-main.cf
- mountPath: /etc/postfix/master.cf
name: postfix-master.cf
- mountPath: /etc/postfix/relay.lmdb
name: postfix-relay.lmdb
- mountPath: /etc/postfix/relay_recipient.lmdb
name: postfix-relay_recipient.lmdb
- mountPath: /etc/postfix/recipient_canonical.lmdb
name: postfix-recipient_canonical.lmdb
- mountPath: /etc/postfix/sender_relay.lmdb
name: postfix-sender_relay.lmdb
- mountPath: /etc/postfix/transport.lmdb
name: postfix-transport.lmdb
- mountPath: /etc/sasl2/smtpd.conf
name: postfix-smtpd.conf
- image: localhost/ldap:latest
name: email-openldap
volumeMounts:
- mountPath: /dev/log
name: dev-log
- mountPath: /run/slapd/socket
name: sockets
- mountPath: /etc/openldap/ca.pem
name: etc-CA.pem
- mountPath: /etc/openldap/cert.pem
name: etc-fullchain.pem
- mountPath: /etc/openldap/key.pem
name: etc-privkey.pem
- mountPath: /etc/openldap/slapd.conf
name: ldap-slapd.conf
- mountPath: /var/lib/ldap
name: ldap-lib
- image: localhost/cyrus:latest
name: email-cyrusimapd
volumeMounts:
- mountPath: /dev/log
name: dev-log
- mountPath: /run/cyrus/socket
name: sockets
- mountPath: /etc/ca.pem
name: etc-CA.pem
- mountPath: /etc/cert.pem
name: etc-fullchain.pem
- mountPath: /etc/key.pem
name: etc-privkey.pem
- mountPath: /etc/cyrus.conf
name: cyrus-cyrus.conf
- mountPath: /etc/imapd.conf
name: cyrus-imapd.conf
- mountPath: /run/cyrus
name: cyrus-run
- mountPath: /var/lib/cyrus
name: cyrus-lib
- mountPath: /var/spool/sieve
name: cyrus-sieve
- mountPath: /var/spool/cyrus/mail
name: cyrus-spool
ipFamilies:
- IPv6
- IPv4
restartPolicy: Always
volumes:
- hostPath:
path: /con/cyrus/imapd.conf
type: File
name: cyrus-imapd.conf
- hostPath:
path: /con/socket
type: Directory
name: sockets
- hostPath:
path: /etc/fullchain.pem
type: File
name: etc-fullchain.pem
- hostPath:
path: /con/ldap/slapd.conf
type: File
name: ldap-slapd.conf
- hostPath:
path: /con/cyrus/run
type: Directory
name: cyrus-run
- hostPath:
path: /con/postfix/aliases.lmdb
type: File
name: postfix-aliases.lmdb
- hostPath:
path: /con/postfix/relay_recipient.lmdb
type: File
name: postfix-relay_recipient.lmdb
- hostPath:
path: /con/postfix/sender_relay.lmdb
type: File
name: postfix-sender_relay.lmdb
- hostPath:
path: /etc/privkey.pem
type: File
name: etc-privkey.pem
- hostPath:
path: /con/postfix/main.cf
type: File
name: postfix-main.cf
- hostPath:
path: /con/postfix/recipient_canonical.lmdb
type: File
name: postfix-recipient_canonical.lmdb
- hostPath:
path: /con/postfix/transport.lmdb
type: File
name: postfix-transport.lmdb
- hostPath:
path: /con/cyrus/lib
type: Directory
name: cyrus-lib
- hostPath:
path: /dev/log
type: File
name: dev-log
- hostPath:
path: /etc/CA.pem
type: File
name: etc-CA.pem
- hostPath:
path: /con/postfix/smtpd.conf
type: File
name: postfix-smtpd.conf
- hostPath:
path: /con/ldap/lib
type: Directory
name: ldap-lib
- hostPath:
path: /con/cyrus/cyrus.conf
type: File
name: cyrus-cyrus.conf
- hostPath:
path: /con/cyrus/sieve
type: Directory
name: cyrus-sieve
- hostPath:
path: /con/cyrus/spool
type: Directory
name: cyrus-spool
- hostPath:
path: /con/postfix/master.cf
type: File
name: postfix-master.cf
- hostPath:
path: /con/postfix/relay.lmdb
type: File
name: postfix-relay.lmdb