Skip to main content
Version 3.0

What goes into Kafka
and who reads from it.

Five scenarios: the address other components use, change capture from databases with Debezium, authorization through Ranger, and the platform consumers. Each one covers: the chart default, what changes in the cluster, and where the configuration lives.

ChartVersion3.0.3TypeapplicationAppVersion4.1.0
CompatibilityKubernetes1.32+OpenShift4.19+Rancher2.10.x+

The tdp-kafka chart configures two integrations in its own values file: Debezium connectors, which capture changes from databases and publish them to topics, and authorization through Ranger. The components that read from Kafka, such as Trino and OpenMetadata, configure the bootstrap address in their own chart. For broker and Kafka UI security, see Security - Kafka.

Your environment

If you fill in your environment details here, the examples and commands on the page use what you provided. The namespace, the release name and the values file are your choices, not the chart's.

Scenarios​

The bootstrap Service that Kafka Connect and the consumers use.

Kafka is accessed through the bootstrap Service, the internal address that leads to the cluster brokers, the Kafka nodes that store the topics and serve the clients.

By default, Strimzi creates this Service named after the cluster, the value of name, with the ports of the plain and tls listeners, both internal and without authentication. Producers, consumers and other components reach it through the Service, from inside the cluster. The components that read from Kafka configure this address in their own chart, not in this one.

The following tabs cover what goes into Kafka and who uses it: the Debezium connectors in scenario 2, authorization through Ranger in scenario 3, Trino in scenario 4 and OpenMetadata in scenario 5.

Service

<KAFKA_CLUSTER_NAME>-kafka-bootstrap, in the Kafka namespace. With the defaults, the cluster name is tdp-kafka.

Listeners

plain and tls, internal, on the ports of listeners.plain.port and listeners.tls.port. With security on, the security.listener listener requires authentication.

Everything through the bootstrap Service

namespace <NAMESPACE>policiesPostgreSQL<DB_NAMESPACE>Database Secret<DEBEZIUM_SECRET_NAME>Image registrybuild.imageKafka ConnectDebezium connectorKafka brokers<KAFKA_CLUSTER_NAME>Bootstrap Serviceplain and tlsTrinokafka catalogOpenMetadataMessaging ServiceRanger Adminservice and policies
  1. Source database. The database whose changes the Debezium connector captures and publishes to topics with the topicPrefix prefix. (kafkaConnects.<tipo>.connectors)
  2. Database credentials. With createSecret: false, the connector reads the connection data from a Secret of your own, in the Kafka namespace. (kafkaConnects.<tipo>.connectors.<nome>.<tipo>.secretName)
  3. Kafka Connect image. Strimzi builds the Kafka Connect image with the Debezium plugin from build.pluginUrl and publishes it to build.image, with the credentials from the Secret in build.pushSecret. (kafkaConnects.<tipo>.connect.build)
  4. Kafka Connect and connector. One KafkaConnect cluster per connected database type, with one KafkaConnector per connectors item. Chart default: all types off. (kafkaConnects.<tipo>.enabled)
  5. Kafka cluster. The chart cluster, with the name from name. (name)
  6. Bootstrap Service. <KAFKA_CLUSTER_NAME>-kafka-bootstrap, with the port of the chosen listener. It is the address Kafka Connect and the consumers use. (listeners.plain.port · listeners.tls.port)
  7. Trino. Queries topics with SQL through the kafka catalog, configured in the Trino chart.
  8. OpenMetadata. Registers Kafka as a Messaging Service, configured in the OpenMetadata chart.
  9. Ranger. With security.authorization.provider: ranger, the plugin on the brokers queries the policies of the Kafka service in Ranger Admin, in place of the ACLs. Chart default: provider: none. (security.authorization.provider)
Everything goes through the bootstrap Service. Click an element to see where it is configured.

Build the address

Cluster name, namespace and port of the chosen listener.

Example
# Plain (PLAINTEXT)
<KAFKA_CLUSTER_NAME>-kafka-bootstrap.<NAMESPACE>.svc.cluster.local:9092

# TLS
<KAFKA_CLUSTER_NAME>-kafka-bootstrap.<NAMESPACE>.svc.cluster.local:9093

It worked when

The Service appears in the Kafka namespace:

Terminal input
kubectl -n <NAMESPACE> get svc <KAFKA_CLUSTER_NAME>-kafka-bootstrap

Configure the consumer in its chart

Each component has its own block. Scenarios 4 and 5 point to them.

Trino uses the address in the kafka catalog and OpenMetadata, in the Messaging Service. The other cluster clients use the same address, with the credentials of their Kafka user when security is on (Security - Kafka).

When something goes wrong​

Troubleshooting

Paste the error message or pick the symptom. The answer comes with the cause, what to do and the command.

  1. Debezium connector with a problem. Cause: Connector configuration or connectivity to the database. What to do: Check the state of the Kafka Connect resources and the connector details.
  2. Rendering error: provider=ranger requires security. Cause: Ranger requires security to be on in the broker, with authentication and an authenticated listener. What to do: Turn on security.enabled and security.authentication.enabled, as in scenario 2 of Security - Kafka.
  3. Rendering error: provider=ranger is blocked ... KRaft combined. Cause: The node pool uses the controller and broker roles together, a topology in which Ranger was not explicitly validated. What to do: The chart message says to separate the controller and broker roles or to set security.authorization.ranger.allowUnsupportedKRaftCombined: true.
  4. Rendering error: existingConfigMap is required. Cause: With createConfigMap: false, the chart needs the name of a ConfigMap of your own with the plugin configuration. What to do: Set security.authorization.ranger.plugin.config.existingConfigMap or put createConfigMap back to true.
  5. Rendering error: security.users[...] defines ACLs. Cause: With the ranger provider, permissions come from the Ranger policies: the users do not accept ACLs. What to do: Remove the ACLs from security.users and keep only the users and the credentials.

Integration parameters​

Filter by name or by group. The keys of this chart are at the root of the values file, with no prefix; <tipo> is postgres, mysql, sqlserver or oracle.

22 of 22 parameters

ParameterDescriptionChart default
kafkaConnects.<tipo>.enabledDebeziumTurns on Kafka Connect and the connectors of the database typefalse
kafkaConnects.<tipo>.connect.nameDebeziumName of the KafkaConnectconnect-debezium-<tipo>
kafkaConnects.<tipo>.connect.replicasDebeziumKafka Connect replicas1
kafkaConnects.<tipo>.connect.bootstrapServersDebeziumKafka cluster bootstrap"" (derives <name>-kafka-bootstrap:9092)
kafkaConnects.<tipo>.connect.kafkaVersionDebeziumKafka version4.1.0
kafkaConnects.<tipo>.connect.build.imageDebeziumImage that Strimzi builds and publishesDebezium image for the type
kafkaConnects.<tipo>.connect.build.pushSecretDebeziumImage push Secretmy-registry-credentials
kafkaConnects.<tipo>.connect.build.pluginUrlDebeziumDebezium plugin URL (tgz)Debezium plugin for the type
kafkaConnects.<tipo>.connect.config.replicationFactorDebeziumReplication of the Kafka Connect internal topics3
kafkaConnects.<tipo>.connectors.<nome>.enabledDebeziumTurns on the connectorvaries by type
kafkaConnects.<tipo>.connectors.<nome>.topicPrefixDebeziumConnector topic prefixvaries by type
kafkaConnects.<tipo>.connectors.<nome>.<tipo>.createSecretDebeziumThe chart creates the Secret with the data from the blockfalse on PostgreSQL, true on the other types
kafkaConnects.<tipo>.connectors.<nome>.<tipo>.secretNameDebeziumSecret with the database connection datavaries by type
registryPushSecret.createDebeziumCreates the Kafka Connect image push Secretfalse
registryPushSecret.nameDebeziumPush Secret namemy-registry-credentials
security.authorization.providerRangerranger turns on the Ranger authorizernone
security.authorization.ranger.serviceNameRangerKafka service name in Rangertdp-kafka
security.authorization.ranger.rangerAdminUrlRangerRanger Admin URLhttp://tdp-ranger-ranger:6080
security.authorization.ranger.allowUnsupportedKRaftCombinedRangerAllows Ranger with controller and broker in the same node poolfalse
security.authorization.ranger.plugin.imagePullSecretsRangerPull secret of the broker image with the plugintdp-registry
security.authorization.ranger.plugin.config.createConfigMapRangerThe chart creates the plugin configuration ConfigMaptrue
security.authorization.ranger.plugin.audit.enabledRangerPlugin auditfalse

Next steps​