-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathapp.yaml
More file actions
101 lines (98 loc) · 1.99 KB
/
Copy pathapp.yaml
File metadata and controls
101 lines (98 loc) · 1.99 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
---
# serviceaccount
apiVersion: v1
kind: ServiceAccount
metadata:
name: docmost-app
namespace: docmost
labels:
app: docmost-app
automountServiceAccountToken: true
---
# service
apiVersion: v1
kind: Service
metadata:
name: docmost-app
namespace: docmost
labels:
app: docmost-app
spec:
type: ClusterIP
ports:
- port: 3000
targetPort: 3000
protocol: TCP
name: http
selector:
app: docmost-app
---
# deployment
apiVersion: apps/v1
kind: Deployment
metadata:
name: docmost-app
namespace: docmost
spec:
replicas: 2
strategy:
type: "RollingUpdate"
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
selector:
matchLabels:
app: docmost-app
template:
metadata:
labels:
app: docmost-app
spec:
serviceAccountName: docmost-app
terminationGracePeriodSeconds: 130
containers:
- name: docmost-app
image: "docmost/docmost:0.20.4"
imagePullPolicy: IfNotPresent
lifecycle:
preStop:
exec:
command: ["sleep", "30s"]
ports:
- name: http
containerPort: 3000
protocol: TCP
envFrom:
- configMapRef:
name: docmost-config
optional: false
- secretRef:
name: docmost-secrets
optional: false
livenessProbe:
initialDelaySeconds: 10
httpGet:
path: /api/health/live
port: http
readinessProbe:
initialDelaySeconds: 10
failureThreshold: 10
httpGet:
path: /api/health/live
port: http
---
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: docmost-app
namespace: docmost
spec:
entryPoints:
- websecure
routes:
- match: Host(`YOUR_DOMAIN.com`)
priority: 1
kind: Rule
services:
- name: docmost-app
port: 3000