-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
diffing-deployment.yaml
52 lines (52 loc) · 1.2 KB
/
diffing-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
apiVersion: apps/v1
kind: Deployment
metadata:
name: diffing
namespace: production
spec:
selector:
matchLabels:
app: diffing-server
replicas: 2
template:
metadata:
labels:
app: diffing-server
spec:
containers:
- name: processing
image: envirodgi/web-monitoring-diff:0.1.3
imagePullPolicy: Always
ports:
- containerPort: 80
resources:
requests:
memory: "265Mi"
cpu: "100m"
limits:
memory: "1024Mi"
cpu: "500m"
readinessProbe:
tcpSocket:
port: 80
initialDelaySeconds: 5
periodSeconds: 10
livenessProbe:
tcpSocket:
port: 80
initialDelaySeconds: 5
periodSeconds: 10
env:
- name: DIFFER_COLOR_INSERTION
value: "#a1d76a"
- name: DIFFER_COLOR_DELETION
value: "#e8a4c8"
- name: DIFFER_PARALLELISM
value: "4"
- name: SENTRY_DSN
valueFrom:
secretKeyRef:
name: diffing-secrets
key: sentry_dsn
- name: SENTRY_ENVIRONMENT
value: "production"