forked from UpHabit/bull_exporter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
k8s-sample.yaml
78 lines (70 loc) · 1.54 KB
/
k8s-sample.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: bull-exporter
labels:
app: bull
role: exporter
spec:
selector:
matchLabels:
app: bull
role: exporter
replicas: 1
template:
metadata:
labels:
app: bull
role: exporter
spec:
automountServiceAccountToken: false
containers:
- name: bull-exporter
image: uphabit/bull_exporter:latest
resources:
requests:
cpu: 100m
memory: 128M
limits:
cpu: 200m
memory: 512M
securityContext:
privileged: false
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
capabilities:
drop:
- all
env:
# space delimited list of queues
- name: EXPORTER_QUEUES
value: "mail job_one video audio"
# find the redis service in the cluster
- name: EXPORTER_REDIS_URL
value: redis://redis:6379/0
livenessProbe:
initialDelaySeconds: 30
periodSeconds: 15
httpGet:
path: /healthz
port: 5959
---
apiVersion: v1
kind: Service
metadata:
name: bull-exporter
labels:
app: bull
role: exporter
annotations:
prometheus.io/scrape: 'true'
prometheus.io/port: '5959'
spec:
type: ClusterIP
ports:
- name: http
port: 5959
targetPort: 5959
selector:
app: bull
role: exporter