-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathinstall.yaml
59 lines (59 loc) · 1.29 KB
/
install.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
50
51
52
53
54
55
56
57
58
59
apiVersion: kafka.strimzi.io/v1beta2
kind: KafkaTopic
metadata:
name: input-topic
labels:
strimzi.io/cluster: my-cluster
spec:
partitions: 1
replicas: 3
config:
retention.ms: 7200000
segment.bytes: 1073741824
---
apiVersion: kafka.strimzi.io/v1beta2
kind: KafkaTopic
metadata:
name: output-topic
labels:
strimzi.io/cluster: my-cluster
spec:
partitions: 1
replicas: 3
config:
retention.ms: 7200000
segment.bytes: 1073741824
---
# using sts because we need a stable identity (pod names)
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: kafka-txn
spec:
replicas: 3
serviceName: kafka-txn
selector:
matchLabels:
app: kafka-txn
template:
metadata:
labels:
app: kafka-txn
spec:
containers:
- name: kafka-txn
image: ghcr.io/fvaleri/kafka-txn:latest
imagePullPolicy: Always
env:
- name: BOOTSTRAP_SERVERS
value: "my-cluster-kafka-bootstrap:9092"
- name: GROUP_ID
value: "my-group"
- name: INSTANCE_ID
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: INPUT_TOPIC
value: "input-topic"
- name: OUTPUT_TOPIC
value: "output-topic"