-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
mailinabox.yaml
69 lines (68 loc) · 1.28 KB
/
mailinabox.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
---
apiVersion: v1
kind: Secret
metadata:
name: mailinabox
data:
MAILINABOX_PASSWORD: MTIzNDU2
MAILINABOX_URL: aHR0cHM6Ly9ib3gueW91cmRvbWFpbi5jb20vYWRtaW4vZG5zL2N1c3RvbS8=
MAILINABOX_USER: eW91cmFkbWluQHlvdXJkb21haW4uY29t
---
apiVersion: v1
kind: Service
metadata:
labels:
app: mailinabox
name: mailinabox
spec:
ports:
- name: "8080"
port: 8080
protocol: TCP
targetPort: 8080
selector:
app: mailinabox
type: ClusterIP
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: mailinabox
name: mailinabox
spec:
replicas: 1
selector:
matchLabels:
app: mailinabox
strategy:
type: RollingUpdate
template:
metadata:
labels:
app: mailinabox
spec:
containers:
- image: kbudde/mailinabox-dnsapi:main
name: mailinabox
ports:
- name: http
containerPort: 8080
readinessProbe:
httpGet:
port: http
path: /healthz
livenessProbe:
httpGet:
port: http
path: /healthz
envFrom:
- secretRef:
name: mailinabox
resources:
limits:
cpu: "50m"
memory: "10Mi"
requests:
cpu: "50m"
memory: "10Mi"