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
/
openshift-template.yml
70 lines (70 loc) · 1.68 KB
/
openshift-template.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
---
kind: Template
apiVersion: v1
metadata:
name: postfix
annotations:
description: postfix with dovecot as IMAP server
tags: imap-server
labels:
template: postfix
group: postfix
version: 3.1.3
objects:
- kind: ImageStream
apiVersion: v1
metadata:
name: "postfix-dovecot-container"
spec:
dockerImageRepository: "phracek/postfix"
tags:
- name: "latest"
- kind: DeploymentConfig
apiVersion: v1
metadata:
name: "postfix-dovecot-container"
spec:
selector:
name: "postfix-dovecot-container"
strategy:
type: "Rolling"
triggers:
- type: "ImageChange"
imageChangeParams:
automatic: true
containerNames:
- "postfix-dovecot-container"
from:
kind: "ImageStreamTag"
name: "postfix:latest"
replicas: 1
template:
metadata:
name: "postfix-dovecot-container"
labels:
name: "postfix-dovecot-container"
spec:
containers:
- name: "postfix-dovecot-container"
image: "postfix:latest"
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: {}