forked from jceb/docker-sogo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deployment.yaml
53 lines (51 loc) · 1.18 KB
/
deployment.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: sogo
spec:
replicas: 2
selector:
matchLabels:
app.kubernetes.io/component: app
app.kubernetes.io/name: sogo
template:
metadata:
labels:
app.kubernetes.io/component: app
app.kubernetes.io/name: sogo
spec:
containers:
- name: sogo
image: salvoxia/sogo
env:
- name: DISABLE_CRON
value: "1"
livenessProbe:
failureThreshold: 3
httpGet:
path: /SOGo
port: http
scheme: HTTP
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 2
readinessProbe:
failureThreshold: 3
httpGet:
path: /SOGo
port: http
scheme: HTTP
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
ports:
- containerPort: 80
name: http
protocol: TCP
volumeMounts:
- mountPath: /srv/etc
name: config
volumes:
- name: config
configMap:
name: sogo-config