-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkafka-consumer.yaml
38 lines (37 loc) · 1.01 KB
/
kafka-consumer.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
apiVersion: batch/v1
kind: Job
metadata:
labels:
app: kafka-consumer-client
user-test-app: kafka-clients
name: kafka-consumer-client
namespace: kafka
spec:
backoffLimit: 0
completions: 1
parallelism: 1
template:
metadata:
labels:
app: kafka-consumer-client
job-name: kafka-consumer-client
user-test-app: kafka-clients
name: kafka-consumer-client
namespace: my-project
spec:
containers:
- env:
- name: BOOTSTRAP_SERVERS
value: dev-cluster-kafka-bootstrap.kafka.svc.cluster.local:9092
- name: TOPIC
value: testBusData
# - name: MESSAGE_COUNT
# value: "100"
- name: GROUP_ID
value: my-group
- name: CLIENT_TYPE
value: KafkaConsumer
image: quay.io/strimzi-test-clients/test-clients:latest-kafka-3.7.1
imagePullPolicy: IfNotPresent
name: kafka-consumer-client
restartPolicy: "Never"