第 6 章 Deploying Streams for Apache Kafka using installation artifacts


Having prepared your environment for a deployment of Streams for Apache Kafka, you can deploy Streams for Apache Kafka to an OpenShift cluster. Use the installation files provided with the release artifacts.

Streams for Apache Kafka is based on Strimzi 0.40.x. You can deploy Streams for Apache Kafka 2.7 on OpenShift 4.12 to 4.16.

The steps to deploy Streams for Apache Kafka using the installation files are as follows:

  1. Deploy the Cluster Operator
  2. Use the Cluster Operator to deploy the following:

  3. Optionally, deploy the following Kafka components according to your requirements:

注意

To run the commands in this guide, an OpenShift user must have the rights to manage role-based access control (RBAC) and CRDs.

6.1. Basic deployment path

You can set up a deployment where Streams for Apache Kafka manages a single Kafka cluster in the same namespace. You might use this configuration for development or testing. Or you can use Streams for Apache Kafka in a production environment to manage a number of Kafka clusters in different namespaces.

The first step for any deployment of Streams for Apache Kafka is to install the Cluster Operator using the install/cluster-operator files.

A single command applies all the installation files in the cluster-operator folder: oc apply -f ./install/cluster-operator.

The command sets up everything you need to be able to create and manage a Kafka deployment, including the following:

  • Cluster Operator (Deployment, ConfigMap)
  • Streams for Apache Kafka CRDs (CustomResourceDefinition)
  • RBAC resources (ClusterRole, ClusterRoleBinding, RoleBinding)
  • Service account (ServiceAccount)

The basic deployment path is as follows:

  1. Download the release artifacts
  2. Create an OpenShift namespace in which to deploy the Cluster Operator
  3. Deploy the Cluster Operator

    1. Update the install/cluster-operator files to use the namespace created for the Cluster Operator
    2. Install the Cluster Operator to watch one, multiple, or all namespaces
  4. Create a Kafka cluster

After which, you can deploy other Kafka components and set up monitoring of your deployment.

Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

关于红帽文档

Legal Notice

Theme

© 2026 Red Hat
返回顶部