此内容没有您所选择的语言版本。
Chapter 3. Deploying Kafka components using the Streams for Apache Kafka operator
When installed on Openshift, the Streams for Apache Kafka operator makes Kafka components available for installation from the user interface.
The following Kafka components are available for installation:
- Kafka
- Kafka Connect
- Kafka MirrorMaker
- Kafka MirrorMaker 2
- Kafka Topic
- Kafka User
- Kafka Bridge
- Kafka Connector
- Kafka Rebalance
You select the component and create an instance. As a minimum, you create a Kafka instance. This procedure describes how to create a Kafka instance using the default settings. You can configure the default installation specification before you perform the installation.
The process is the same for creating instances of other Kafka components.
Prerequisites
- The Streams for Apache Kafka operator is installed on the OpenShift cluster.
Procedure
Navigate in the web console to the Operators > Installed Operators page and click Streams for Apache Kafka to display the operator details.
From Provided APIs, you can create instances of Kafka components.
Click Create instance under Kafka to create a Kafka instance.
By default, you’ll create a Kafka cluster called
my-clusterwith three Kafka broker nodes and three ZooKeeper nodes. The cluster uses ephemeral storage.NoteIf you prefer to create a Kafka cluster in KRaft mode, you can use one of the example KRaft-based deployment files provided with Streams for Apache Kafka. To use deployment files to install Streams for Apache Kafka, download and extract the files from the Streams for Apache Kafka software downloads page. Paste the configuration in the YAML view before starting the installation of the Kafka instance.
Click Create to start the installation of Kafka.
Wait until the status changes to Ready.