This repository has been archived by the owner on Mar 7, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
/
imap-template.yaml
96 lines (96 loc) · 2.33 KB
/
imap-template.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
---
kind: Template
apiVersion: v1
metadata:
name: imap-mail-server
annotations:
description: postfix and dovect as IMAP server
tags: imap-mail-server
labels:
template: imap-mail-server
group: imap-mail-server
objects:
- kind: ImageStream
apiVersion: v1
metadata:
name: postfix_imap
spec:
dockerImageRepository: postfix_imap
tags:
- name: latest
- kind: ImageStream
apiVersion: v1
metadata:
name: dovecot_imap
spec:
dockerImageRepository: dovecot_imap
tags:
- name: latest
- kind: DeploymentConfig
apiVersion: v1
metadata:
name: imap-mail-server
spec:
selector:
name: imap-mailserver
strategy:
type: Rolling
triggers:
- type: ImageChange
imageChangeParams:
automatic: true
containerNames:
- postfix-imap
from:
kind: ImageStreamTag
name: postfix_imap:latest
- type: ImageChange
imageChangeParams:
automatic: true
containerNames:
- dovecot-imap
from:
kind: ImageStreamTag
name: dovecot_imap:latest
replicas: 1
template:
metadata:
name: imap-mailserver
labels:
name: imap-mailserver
spec:
containers:
- name: postfix-imap
image: postfix_imap:latest
imagePullPolicy: Never
ports:
- containerPort: 10025
- containerPort: 10587
- containerPort: 10465
volumeMounts:
- mountPath: /var/spool/postfix
name: spool-postfix
- mountPath: /var/spool/mail
name: spool-mail
- mountPath: /var/log
name: log
- name: dovecot-imap
image: dovecot_imap:latest
imagePullPolicy: Never
volumeMounts:
- mountPath: /var/spool/postfix
name: spool-postfix
- mountPath: /var/spool/mail
name: spool-mail
- mountPath: /var/log
name: log
volumes:
# - name: var
# emptyDir:
# medium: Memory
- name: spool-postfix
emptyDir: {}
- name: spool-mail
emptyDir: {}
- name: log
emptyDir: {}