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 11
/
imap-pod.yml
72 lines (72 loc) · 1.63 KB
/
imap-pod.yml
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
kind: Pod
apiVersion: v1
metadata:
name: imap-mail-server
annotations:
description: postfix and dovect as IMAP server
deploymentconfig: docker-registry
docker-registry: default
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:
containers:
- env:
- name: MYHOSTNAME
value: "localhost"
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"
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
volumes:
# - name: var
# emptyDir:
# medium: Memory
- name: spool-postfix
emptyDir: {}
- name: spool-mail
emptyDir: {}
- name: log
emptyDir: {}