-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmon-exporter-kafka.yml
77 lines (77 loc) · 1.8 KB
/
mon-exporter-kafka.yml
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
apiVersion: apps/v1
kind: Deployment
metadata:
name: prom-kafka-exporter
namespace: <namespace>
labels:
name: prom-kafka-exporter
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
name: prom-kafka-exporter
template:
metadata:
labels:
name: prom-kafka-exporter
spec:
nodeSelector:
env: <clientId>
role: worker
priorityClassName: class-monitor
containers:
- name: prom-kafka-exporter
image: 3dsinteractive/kafka-minion:1.0.0
imagePullPolicy: Always
env:
- name: KAFKA_BROKERS
value: kfk1:9092,kfk2:9092,kfk3:9092
- name: KAFKA_VERSION
value: "2.0.0"
- name: KAFKA_SASL_ENABLED
value: "false"
- name: KAFKA_TLS_ENABLED
value: "false"
- name: TELEMETRY_PORT
value: "8080"
resources:
requests:
memory: 100Mi
cpu: 10m
limits:
memory: 500Mi
cpu: 300m
livenessProbe:
tcpSocket:
port: 8080
initialDelaySeconds: 5
timeoutSeconds: 1
periodSeconds: 300
readinessProbe:
tcpSocket:
port: 8080
initialDelaySeconds: 5
timeoutSeconds: 1
periodSeconds: 30
failureThreshold: 5
ports:
- containerPort: 8080
name: exporter8080
---
apiVersion: v1
kind: Service
metadata:
name: prom-kafka-exporter
namespace: <namespace>
labels:
name: prom-kafka-exporter
spec:
ports:
- port: 9308
name: "exporter9308"
targetPort: 8080
protocol: TCP
selector:
name: prom-kafka-exporter