-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmy-mirror-maker-2.yaml
35 lines (35 loc) · 1.11 KB
/
my-mirror-maker-2.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
apiVersion: kafka.strimzi.io/v1beta2
kind: KafkaMirrorMaker2
metadata:
namespace: kafka-mirror
name: my-mirror-maker
spec:
version: 2.8.0
replicas: 1
connectCluster: "my-target-cluster"
clusters:
- alias: "my-source-cluster"
bootstrapServers: my-cluster-kafka-bootstrap.kafka.svc.cluster.local:9092
- alias: "my-target-cluster"
bootstrapServers: my-cluster-kafka-bootstrap.kafka-mirror.svc.cluster.local:9092
config:
# -1 means it will use the default replication factor configured in the broker
config.storage.replication.factor: -1
offset.storage.replication.factor: -1
status.storage.replication.factor: -1
mirrors:
- sourceCluster: "my-source-cluster"
targetCluster: "my-target-cluster"
sourceConnector:
config:
replication.factor: 1
offset-syncs.topic.replication.factor: 1
sync.topic.acls.enabled: "false"
heartbeatConnector:
config:
heartbeats.topic.replication.factor: 1
checkpointConnector:
config:
checkpoints.topic.replication.factor: 1
topicsPattern: "blogs,items"
groupsPattern: ".*"