forked from Yolean/kubernetes-kafka
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkafka-minion.yaml
49 lines (49 loc) · 1.29 KB
/
kafka-minion.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: metrics-minion
namespace: kafka
labels: &labels
app: kafka-minion
type: openmetrics
spec:
replicas: 1
selector:
matchLabels: *labels
template:
metadata:
labels: *labels
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "8080"
prometheus.io/path: /metrics
spec:
containers:
- name: kafka-minion
image: solsson/kafka-consumers-prometheus@sha256:039d0bc0c1bdfa8b2e515e4c05ab8490492c65b43830579ce76d36278f33d447
env:
- name: TELEMETRY_HOST
value: 0.0.0.0
- name: TELEMETRY_PORT
value: "8080"
- name: EXPORTER_IGNORE_SYSTEM_TOPICS
value: "true"
- name: EXPORTER_METRICS_PREFIX
value: kafka_minion
- name: LOG_LEVEL
value: info
- name: KAFKA_BROKERS
value: kafka-0.broker:9092, kafka-1.broker:9092, kafka-2.broker:9092
- name: KAFKA_CONSUMER_OFFSETS_TOPIC_NAME
value: __consumer_offsets
ports:
- name: http
containerPort: 8080
readinessProbe:
httpGet:
port: http
path: /readycheck
livenessProbe:
httpGet:
port: http
path: /healthcheck