-
Notifications
You must be signed in to change notification settings - Fork 65
/
java-kafka-producer.yaml
36 lines (36 loc) · 1.05 KB
/
java-kafka-producer.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
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: java-kafka-producer
name: java-kafka-producer
spec:
replicas: 1
selector:
matchLabels:
app: java-kafka-producer
template:
metadata:
labels:
app: java-kafka-producer
spec:
containers:
- name: java-kafka-producer
image: quay.io/strimzi-examples/java-kafka-producer:latest
env:
- name: STRIMZI_TOPIC
value: my-topic
- name: STRIMZI_DELAY_MS
value: "1000"
- name: STRIMZI_LOG_LEVEL
value: "INFO"
- name: STRIMZI_MESSAGE_COUNT
value: "1000000"
- name: KAFKA_BOOTSTRAP_SERVERS
value: my-cluster-kafka-bootstrap:9092
- name: KAFKA_ACKS
value: "all"
- name: KAFKA_KEY_SERIALIZER
value: "org.apache.kafka.common.serialization.StringSerializer"
- name: KAFKA_VALUE_SERIALIZER
value: "org.apache.kafka.common.serialization.StringSerializer"