-
Notifications
You must be signed in to change notification settings - Fork 18
/
exhort.yaml
94 lines (94 loc) · 2.08 KB
/
exhort.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
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
apiVersion: apps/v1
kind: Deployment
metadata:
name: exhort
labels:
app: exhort
spec:
replicas: 1
selector:
matchLabels:
app: exhort
template:
metadata:
labels:
app: exhort
spec:
containers:
- name: exhort
image: exhort:latest
imagePullPolicy: IfNotPresent
ports:
- name: http
containerPort: 8080
protocol: TCP
- name: management
containerPort: 9000
protocol: TCP
resources:
limits:
memory: "5120Mi"
cpu: "500m"
env:
- name: API_SNYK_DISABLED
value: "true"
- name: API_OSSINDEX_DISABLED
value: "true"
- name: MONITORING_ENABLED
value: "true"
- name: MONITORING_SENTRY_DSN
valueFrom:
secretKeyRef:
name: exhort-secret
key: sentry-dsn
- name: MONITORING_SENTRY_SERVERNAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: MONITORING_SENTRY_ENVIRONMENT
value: development
- name: TELEMETRY_WRITE_KEY
valueFrom:
secretKeyRef:
name: exhort-secret
key: telemetry-write-key
- name: DB_REDIS_HOST
valueFrom:
secretKeyRef:
name: exhort-secret
key: db.host
- name: DB_REDIS_PORT
valueFrom:
secretKeyRef:
name: exhort-secret
key: db.port
livenessProbe:
httpGet:
path: /q/health/live
port: 9000
initialDelaySeconds: 1
readinessProbe:
httpGet:
path: /q/health/ready
port: 9000
initialDelaySeconds: 2
periodSeconds: 15
---
apiVersion: v1
kind: Service
metadata:
name: exhort
labels:
app: exhort
spec:
ports:
- name: http
port: 8080
protocol: TCP
targetPort: 8080
- name: management
port: 9000
protocol: TCP
targetPort: 9000
selector:
app: exhort