This repository was archived by the owner on Feb 9, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmailhogInstance_console_examples.yaml
More file actions
186 lines (186 loc) · 5.69 KB
/
mailhogInstance_console_examples.yaml
File metadata and controls
186 lines (186 loc) · 5.69 KB
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
apiVersion: console.openshift.io/v1
kind: ConsoleYAMLSample
metadata:
name: mhi1-simple
spec:
targetResource:
apiVersion: mailhog.operators.patrick.mx/v1alpha1
kind: MailhogInstance
title: 1. Minimal
description: MailhogInstance minimal example
yaml: |
apiVersion: mailhog.operators.patrick.mx/v1alpha1
kind: MailhogInstance
metadata:
name: mhi1-simple
namespace: project
annotations:
app.openshift.io/vcs-uri: 'https://console-openshift-console.apps-crc.testing/k8s/ns/project/mailhog.operators.patrick.mx~v1alpha1~MailhogInstance/mhi1-simple/yaml'
spec:
image: 'mailhog/mailhog:latest'
replicas: 1
settings:
storage: memory
webTrafficInlet: route
---
apiVersion: console.openshift.io/v1
kind: ConsoleYAMLSample
metadata:
name: mhi3-jim
spec:
targetResource:
apiVersion: mailhog.operators.patrick.mx/v1alpha1
kind: MailhogInstance
title: 3 - Chaosmonkey
description: MailhogInstance with enabled chaosmonkey
yaml: |
apiVersion: mailhog.operators.patrick.mx/v1alpha1
kind: MailhogInstance
metadata:
name: mhi3-jim
namespace: project
annotations:
app.openshift.io/vcs-uri: 'https://console-openshift-console.apps-crc.testing/k8s/ns/project/mailhog.operators.patrick.mx~v1alpha1~MailhogInstance/mhi3-jim/yaml'
spec:
image: 'mailhog/mailhog:latest'
replicas: 1
settings:
storage: memory
jim:
invite: true
disconnect: "0.1"
rejectRecipient: "0.2"
webTrafficInlet: route
---
apiVersion: console.openshift.io/v1
kind: ConsoleYAMLSample
metadata:
name: mhi4-reslimit
spec:
targetResource:
apiVersion: mailhog.operators.patrick.mx/v1alpha1
kind: MailhogInstance
title: 4 - Pod Resource Limits
description: MailhogInstance with custom pod resource limits
yaml: |
apiVersion: mailhog.operators.patrick.mx/v1alpha1
kind: MailhogInstance
metadata:
name: mhi4-reslimit
namespace: project
annotations:
app.openshift.io/vcs-uri: 'https://console-openshift-console.apps-crc.testing/k8s/ns/project/mailhog.operators.patrick.mx~v1alpha1~MailhogInstance/mhi4-reslimit/yaml'
spec:
image: 'mailhog/mailhog:latest'
replicas: 1
settings:
storage: memory
resources:
limits:
cpu: 400m
memory: 100Mi
requests:
cpu: 100m
memory: 80Mi
webTrafficInlet: route
---
apiVersion: console.openshift.io/v1
kind: ConsoleYAMLSample
metadata:
name: mhi5-cm
spec:
targetResource:
apiVersion: mailhog.operators.patrick.mx/v1alpha1
kind: MailhogInstance
title: 5 - Configmap (Upstreams, WebUI PW)
description: MailhogInstance with settings requiring a configmap. PWs = example
yaml: |
apiVersion: mailhog.operators.patrick.mx/v1alpha1
kind: MailhogInstance
metadata:
name: mhi5-cm
namespace: project
annotations:
app.openshift.io/vcs-uri: 'https://console-openshift-console.apps-crc.testing/k8s/ns/project/mailhog.operators.patrick.mx~v1alpha1~MailhogInstance/mhi5-cm/yaml'
spec:
image: 'mailhog/mailhog:latest'
replicas: 1
settings:
storage: memory
files:
smtpUpstreams:
- name: mh1
save: true
email: tom@mailhog.local
host: mhi1-simple
port: "1025"
- name: mh2
save: true
email: jerry@mailhog.local
host: mhi2-dc
port: "1025"
webUsers:
- name: example
passwordHash: $2a$04$erImcj5XhZOONGjzbbqrN.YtHYb6eNn/GgKRIPh6YqDGIhVIuN0Y6
- name: root
passwordHash: $2a$04$erImcj5XhZOONGjzbbqrN.YtHYb6eNn/GgKRIPh6YqDGIhVIuN0Y6
webTrafficInlet: route
---
apiVersion: console.openshift.io/v1
kind: ConsoleYAMLSample
metadata:
name: mhi6-maildir
spec:
targetResource:
apiVersion: mailhog.operators.patrick.mx/v1alpha1
kind: MailhogInstance
title: 6 - Maildir Storage
description: MailhogInstance with Maildir Storage
yaml: |
apiVersion: mailhog.operators.patrick.mx/v1alpha1
kind: MailhogInstance
metadata:
name: mhi6-maildir
namespace: project
annotations:
app.openshift.io/vcs-uri: 'https://console-openshift-console.apps-crc.testing/k8s/ns/project/mailhog.operators.patrick.mx~v1alpha1~MailhogInstance/mhi6-maildir/yaml'
spec:
image: 'mailhog/mailhog:latest'
replicas: 1
settings:
storage: maildir
storageMaildir:
path: /var/lib/mailhog-maildir
webTrafficInlet: route
---
apiVersion: console.openshift.io/v1
kind: ConsoleYAMLSample
metadata:
name: mhi7-mongodb
spec:
targetResource:
apiVersion: mailhog.operators.patrick.mx/v1alpha1
kind: MailhogInstance
title: 7 - MongoDB Storage
description: MailhogInstance with MongoDB Storage (requires mongodb managed externally)
yaml: |
apiVersion: mailhog.operators.patrick.mx/v1alpha1
kind: MailhogInstance
metadata:
name: mhi7-mongodb
namespace: project
labels:
app.kubernetes.io/part-of: mailhog
annotations:
app.openshift.io/connects-to: '[{"apiVersion":"apps.openshift.io/v1","kind":"DeploymentConfig","name":"mongodb"}]'
app.openshift.io/vcs-uri: 'https://console-openshift-console.apps-crc.testing/k8s/ns/project/mailhog.operators.patrick.mx~v1alpha1~MailhogInstance/mhi7-mongodb/yaml'
spec:
image: 'mailhog/mailhog:latest'
replicas: 1
settings:
storage: mongodb
storageMongoDb:
uri: mongodb://admin:admin@mongodb:27017
db: mailhog
collection: mails
webTrafficInlet: route