-
Notifications
You must be signed in to change notification settings - Fork 0
/
mail-service.yaml
58 lines (58 loc) · 1.23 KB
/
mail-service.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: mail
spec:
selector:
matchLabels:
app: mail
replicas: 1
template:
metadata:
labels:
app: mail
spec:
containers:
- name: mail
image: mailhog/mailhog:v1.0.1
env:
- name: MAIL_USER
valueFrom:
secretKeyRef:
name: mail-secret
key: user_name
- name: MAIL_PASSWORD
valueFrom:
secretKeyRef:
name: mail-secret
key: password
- name: MAIL_DOMAIN
valueFrom:
configMapKeyRef:
name: mail-cfgmap
key: MAIL_DOMAIN
- name: MAIL_DEFAULT_SENDER_ADDRESS
valueFrom:
configMapKeyRef:
name: mail-cfgmap
key: MAIL_DEFAULT_SENDER_ADDRESS
- name: MAIL_DEFAULT_SENDER_NAME
valueFrom:
configMapKeyRef:
name: mail-cfgmap
key: MAIL_DEFAULT_SENDER_NAME
ports:
- containerPort: 1025
name: mail
---
apiVersion: v1
kind: Service
metadata:
name: mail-service
spec:
selector:
app: mail
type: LoadBalancer
ports:
- port: 1025
targetPort: 1025