forked from miguelemosreverte/KafkaPublisher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
job.yml
33 lines (33 loc) · 867 Bytes
/
job.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
---
apiVersion: batch/v1
kind: Job
metadata:
name: alpakka-kafka-publisher-1-million
spec:
manualSelector: true
selector:
matchLabels:
app: alpakka
template:
metadata:
labels:
app: alpakka
# This is the pod template
spec:
containers:
- name: alpakka-kafka-publisher-1-million
image: miguelemos/alpakka_kafka_publisher:kafka-3-with-1-topic
imagePullPolicy: IfNotPresent
ports:
- protocol: TCP
containerPort: 9095
name: monitoring
env:
- name: KAFKA_SERVERS
value: "kafka-svc.kafka-kraft.svc.cluster.local:9092"
- name: MESSAGES_AMOUNT
value: "10000000"
- name: TOPIC
value: 3-partition
restartPolicy: OnFailure
# The pod template ends here