You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: documentation/modules/configuring/con-config-mirrormaker2.adoc
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -216,7 +216,8 @@ spec:
216
216
<2> Kafka cluster alias for Kafka Connect, which must specify the *target* Kafka cluster. The Kafka cluster is used by Kafka Connect for its internal topics.
217
217
<3> Specification for the Kafka clusters being synchronized.
218
218
<4> Cluster alias for the source Kafka cluster.
219
-
<5> Authentication for the source cluster, specified as mTLS, token-based OAuth, SASL-based SCRAM-SHA-256/SCRAM-SHA-512, or PLAIN.
219
+
<5> Authentication for the source cluster, specified as `tls`, `scram-sha-256`, `scram-sha-512`, `plain`, or `oauth`.
220
+
For details on configuring authentication, see the link:{BookURLConfiguring}#type-KafkaMirrorMaker2ClusterSpec-schema-reference[`KafkaMirrorMaker2Spec` schema properties^]
220
221
<6> Bootstrap address for connection to the source Kafka cluster. The address takes the format `<cluster_name>-kafka-bootstrap:<port_number>`. The Kafka cluster doesn't need to be managed by Strimzi or deployed to a Kubernetes cluster.
221
222
<7> TLS configuration for encrypted connections to the Kafka cluster, with trusted certificates stored in X.509 format within the specified secrets.
IMPORTANT: If deploying MirrorMaker 2 clusters to run in parallel, using the same target Kafka cluster, each instance must use unique names for internal Kafka Connect topics.
20
-
To do this, xref:con-config-mm2-multiple-instances-{context}[configure each MirrorMaker 2 instance to replace the defaults].
21
-
22
19
.Prerequisites
23
20
24
-
* xref:deploying-cluster-operator-str[The Cluster Operator must be deployed.]
21
+
* Cluster Operator is deployed.
22
+
* Kafka cluster is running.
23
+
+
24
+
This procedure assumes that the Kafka cluster was deployed using Strimzi.
25
25
26
26
.Procedure
27
27
28
+
. Edit the deployment file to configure connection details (if required).
29
+
+
30
+
In `examples/mirror-maker/kafka-mirror-maker-2.yaml`, add or update the following properties as needed:
31
+
+
32
+
* `spec.clusters[].bootstrapServers` to specify the Kafka bootstrap address for the source and target clusters.
33
+
* `spec.clusters[].alias` to specify a unique identifier for each cluster.
34
+
* `spec.clusters[].authentication` to specify the authentication type for each cluster as `tls`, `scram-sha-256`, `scram-sha-512`, `plain`, or `oauth`. +
35
+
See the link:{BookURLConfiguring}#type-KafkaMirrorMaker2ClusterSpec-schema-reference[`KafkaMirrorMaker2Spec` schema properties^] for configuration details.
36
+
* `spec.clusters[].tls.trustedCertificates` to configure the TLS certificate for each cluster. +
37
+
Use `[]` (an empty array) to trust the default Java CAs, or specify secrets containing trusted certificates. +
38
+
See link:{BookURLConfiguring}#con-common-configuration-trusted-certificates-reference[`trustedCertificates` properties^] for configuration details.
39
+
40
+
. Configure the deployment for multiple MirrorMaker 2 clusters (if required).
41
+
+
42
+
If you plan to run more than one MirrorMaker 2 cluster in the same environment, each instance must use unique internal topic names and a unique group ID.
43
+
+
44
+
Update the `spec.clusters[].config` properties in `kafka-mirror-maker-2.yaml` to replace the default values.
45
+
+
46
+
See xref:con-config-mm2-multiple-instances-{context}[Configuring multiple MirrorMaker 2 clusters] for details.
47
+
28
48
. Deploy Kafka MirrorMaker to your Kubernetes cluster:
0 commit comments