Skip to main content
Version 3.0

Brokers, Kafka UI and change data capture,
ready in your cluster.

Six common scenarios, from the first installation to capturing changes from your databases. Each one covers: what the chart already provides, what changes in the cluster, the values file commented line by line, and a step-by-step with verification.

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

The tdp-kafka chart starts an Apache Kafka cluster in KRaft mode, managed by the Strimzi operator, with Kafka UI to monitor the cluster and, when needed, Debezium connectors publishing database changes to Kafka. Cluster size, access and security are your decisions, and each scenario below addresses one of them. For the architecture, see Apache Kafka - Concepts.

Your environment

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

Scenarios​

Check prerequisites, install with chart defaults and open Kafka UI from your machine.

You want to see Kafka working before deciding size, access or security. TDP Kafka depends on a Strimzi operator, the program that creates and maintains the Kafka cluster from the resources the chart declares. It runs once per cluster, installed by the tdp-operator chart, and uses the Strimzi CRDs from the tdp-crds chart. With these ready, install the chart without a values file, check that the cluster is up and open Kafka UI from your machine.

What comes up is a node pool, a group of Kafka nodes with the same configuration. Each node is both a broker, which stores topic partitions and serves those producing and consuming messages, and a controller, which keeps the cluster metadata in KRaft mode. Everything shown here is what the chart provides by itself. The other scenarios start from this state.

Cluster

One node pool with the node count in nodePool.replicas, each both controller and broker in KRaft mode, and one persistent volume per node in the cluster default StorageClass.

Operator

Strimzi from tdp-operator, one per cluster. The operator embedded in this chart (strimzi-kafka-operator.enabled) defaults to disabled. Enable it only in an isolated installation without tdp-operator in the cluster.

Application access

Two internal listeners, plain and tls, without authentication, through the <KAFKA_CLUSTER_NAME>-kafka-bootstrap Service.

Kafka UI

Enabled, with a login form and local admin user. Internal Service (ClusterIP) and, always, a NodePort Service.

Entity Operator

Enabled: topics and users can be declared as KafkaTopic and KafkaUser resources.

What starts with chart defaults

namespace <NAMESPACE>operator namespaceport-forwardApplicationsproducers and consumersBootstrap Serviceplain and tlsKafka node ×4controller + broker · KRaftPVC ×4one per nodeEntity Operatortopics and usersStrimzi Operatortdp-operatorUI ServiceClusterIP + NodePortKafka UIlogin formUI usersport-forwardSpread across nodesStrimzi PDB
  1. Applications. Producers and consumers reach Kafka through the bootstrap Service. Chart listeners are internal: access from outside the cluster requires exposing an additional listener. Chart default: internal plain and tls listeners. (listeners.plain · listeners.tls)
  2. Bootstrap Service. The address applications use to find brokers. The name derives from the cluster name: <KAFKA_CLUSTER_NAME>-kafka-bootstrap, where <KAFKA_CLUSTER_NAME> is the name value. Both listener ports are in listeners.plain.port and listeners.tls.port. Chart default: cluster name in name. (name · listeners.plain.port · listeners.tls.port)
  3. Kafka nodes. Each node pool node is both controller and broker, in KRaft mode. The count is in nodePool.replicas and roles in nodePool.roles. Chart default: one node pool with controller and broker roles. (nodePool.replicas · nodePool.roles)
  4. Node volumes. Each node writes to a persistent volume from the cluster default StorageClass or the one defined in storageClass. Removing a node never deletes its volume: deleteClaim remains disabled. Chart default: deleteClaim disabled. (nodePool.storage.volumes)
  5. Entity Operator. Strimzi component keeping namespace KafkaTopic and KafkaUser resources synchronized with the cluster. Chart default: enabled. (entityOperator.enabled)
  6. Strimzi operator. One operator per cluster, installed by the tdp-operator chart. The operator embedded in this chart defaults to disabled and is only for isolated installations without tdp-operator in the cluster. Chart default: embedded operator disabled. (strimzi-kafka-operator.enabled)
  7. Kafka UI Services. The <RELEASE_NAME>-kafka-ui Service is internal (ClusterIP). The chart also always creates the <RELEASE_NAME>-kafka-ui-nodeport Service, making the UI accessible through any node IP on the kafka-ui.service.nodePort port. Chart default: ClusterIP and NodePort. (kafka-ui.service)
  8. Kafka UI. Cluster web interface. Requires login through a form, with a local user, and connects to the cluster through the bootstrap Service. Chart default: LOGIN_FORM, admin user. (kafka-ui.applicationConfig.auth.type)
  9. UI users. Without external exposure, each person opens a tunnel from their machine to the Service with kubectl port-forward. Chart default: no external exposure.
  10. Spreading across nodes. At most one broker difference between any two nodes, without ever leaving a broker Pending. Chart default: enabled. (nodePool.topologySpreadConstraints)
  11. PodDisruptionBudget. The Strimzi operator already creates budgets for brokers and Entity Operator. The chart does not create another: a second budget over the same pods makes the eviction API reject every removal, breaking kubectl drain. Chart default: created by Strimzi, not the chart.
What starts with chart defaults. Click an element to see what it is and its corresponding default.

Check the TDP license

The chart requires a valid TDP license installed in the cluster.

Terminal input
kubectl get platformlicenses -A

Success criteria

The license appears in the list with STATE VALID. If it does not appear, or appears with another state, install or renew it before continuing (Licensing Configuration).

Check the Strimzi operator

The operator comes from the operators chart, installed once per cluster, after the CRDs chart.

Terminal input
kubectl get pods -n <OPERATOR_NAMESPACE> -l strimzi.io/kind=cluster-operator

Success criteria

The operator pod shows Running in the tdp-operator namespace. If it does not appear, follow the order in Helm Installation: tdp-crds, then tdp-operator (Operators Configuration).

Create the registry pull Secret

Chart images come from the Tecnisys registry, which requires login.

The tdp-registry Secret must exist in the release namespace before installation. If the namespace does not exist yet, create it first with kubectl create namespace <NAMESPACE>.

Terminal input
kubectl -n <NAMESPACE> create secret docker-registry tdp-registry \
--docker-server=registry.tecnisys.com.br \
--docker-username=<REGISTRY_USERNAME> --docker-password=<REGISTRY_CLI_SECRET>

Success criteria

Terminal input
kubectl -n <NAMESPACE> get secret tdp-registry

The Secret appears in the namespace. Without it, pods remain in ImagePullBackOff. Where to obtain the registry username and password: Prerequisites.

Install with defaults

Without a values file, the chart starts exactly as in the figure above.

Terminal input
helm upgrade --install <RELEASE_NAME> oci://registry.tecnisys.com.br/tdp/charts/tdp-kafka \
--version 3.0.3 \
-n <NAMESPACE> --create-namespace

--version installs the chart version for this documentation. Without it, Helm installs the latest version published in the registry. The same installation command is used on Kubernetes and OpenShift, with no extra parameters.

Success criteria

Terminal input
kubectl get kafka -n <NAMESPACE>
kubectl get kafkanodepools -n <NAMESPACE>
kubectl get pods -n <NAMESPACE> -l strimzi.io/cluster=<KAFKA_CLUSTER_NAME>

The Kafka resource and node pool appear and node pods reach Running. The cluster name is the name value. With defaults, tdp-kafka.

If a pod does not start

Namespace events, in chronological order, show the reason:

Terminal input
kubectl -n <NAMESPACE> get events --sort-by=.lastTimestamp

Then look up the message in When something goes wrong.

Open Kafka UI from your machine

Without external exposure, kubectl opens a tunnel from your machine to the UI Service.

Terminal input
kubectl port-forward -n <NAMESPACE> svc/<RELEASE_NAME>-kafka-ui 8080:80

Success criteria

Kafka UI opens at localhost, on the local port used in port-forward above, and accepts user admin with temporary password ChangeMe!T3c, the same default password as other TDP charts.

Before using Kafka UI beyond testing, set your password in a private values file or switch to LDAP or Active Directory login: scenario 1 of Security - Kafka.

The chart also always creates a NodePort Service for the UI: it responds on any node IP at http://<NODE_IP>:<NODE_PORT>, with the port from kafka-ui.service.nodePort. To see node IPs:

Terminal input
kubectl get nodes -o wide

If nodes are externally accessible, restrict this port on the network.

Note the application address

This is the address producers, consumers and other components configure.

Inside the cluster, applications use the bootstrap Service with the chosen listener port:

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

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

When something goes wrong​

Troubleshooting

Paste the error message or choose a symptom. The answer includes the cause, what to do and the command.

  1. Installation rejected: license check failed. Cause: The TDP license is missing or invalid in the cluster. What to do: Check the license with the command below. If its status is not VALID, install or renew it (Licensing Configuration) and repeat installation.
  2. Pods in ImagePullBackOff. Cause: The tdp-registry pull Secret is missing from the release namespace: images from the Tecnisys registry require login. What to do: Create the tdp-registry Secret in the release namespace with your registry credentials (scenario 1, First contact).
  3. CRD conflict during installation. Cause: Strimzi CRDs already exist in the cluster from a previous installation. They belong to the platform CRDs chart. What to do: Upgrade the CRDs chart and run Kafka helm upgrade --install again.
  4. Pods in Pending. Cause: StorageClass missing or lacking capacity for node volumes. What to do: Check the namespace StorageClass and PVCs.
  5. Kafka UI cannot connect to the cluster. Cause: Bootstrap address, Kafka credentials or the Secret referenced by the UI. What to do: Check bootstrap, the UI Kafka user and the Secret in kafka-ui.connection.authentication.existingSecret.
  6. Kafka UI crashes at startup (exit 139, SIGILL). Cause: On OpenShift Local on Apple M4/M5 Macs, the VM exposes SVE/SME CPU features and the UI JDK crashes. Helm --wait times out even though Kafka is ready. What to do: Add kafka-ui.envs.config.JAVA_TOOL_OPTIONS: "-XX:UseSVE=0" to the values file.
  7. Pods OOMKilled. Cause: Insufficient CPU or memory limits. What to do: Adjust CPU and memory limits for affected pods.
  8. Debezium connector issue. Cause: Connector configuration or database connectivity. What to do: See the Debezium scenario in Integrations - Kafka.
  9. Other problem. Cause: Start with what the chart renders, Strimzi resource status and operator logs. What to do: helm template shows what the chart will create with your values. Describe on the Kafka resource and operator logs, in the tdp-operator namespace, show what Strimzi did with it.

What remains after uninstalling​

To uninstall, run helm uninstall <RELEASE_NAME> -n <NAMESPACE>. Node volumes remain (deleteClaim: false), and a new installation with the same cluster name (name) finds the data again.

Instead of deleting the volumes:

  • To reinstall keeping the data, do not delete: install again with the same name.
  • To be able to go back, take a snapshot of each volume first, as in Helm Upgrade.
  • To see what will disappear, list the volumes with the same selector used for removal:
Terminal input
kubectl -n <NAMESPACE> get pvc -l strimzi.io/cluster=<KAFKA_CLUSTER_NAME>
Data loss

Deleting PVCs permanently removes the persisted data. Do this only when the teardown is final and backups are complete.

To start from scratch, delete the volumes after helm uninstall:

Terminal input
kubectl -n <NAMESPACE> delete pvc -l strimzi.io/cluster=<KAFKA_CLUSTER_NAME>

The order for removing all components and the platform is in Uninstallation.

All parameters​

Filter by name or group. This chart's keys belong at the values file root, without a prefix.

42 of 42 parameters

ParameterDescriptionChart default
strimzi-kafka-operator.enabledGeneralBundles a Strimzi operator in this release (isolated installation only, without the operators chart)false
nameGeneralKafka cluster name. Determines the bootstrap Service nametdp-kafka
kafkaVersionGeneralKafka version4.1.0
metadataVersionGeneralKRaft metadata version4.1-IV1
clusterLabelGeneralCluster labeltdp
entityOperator.enabledGeneralEntity Operator (KafkaTopic and KafkaUser)true
listeners.plain.enabledListenersplain listenertrue
listeners.plain.portListenersplain listener port9092
listeners.tls.enabledListenersTLS listenertrue
listeners.tls.portListenersTLS listener port9093
config.offsets.topic.replication.factorReplicationOffsets topic replication factor3
config.transaction.state.log.replication.factorReplicationTransaction log replication factor3
config.transaction.state.log.min.isrReplicationMinimum transaction log in-sync replicas2
config.default.replication.factorReplicationDefault topic replication factor3
config.min.insync.replicasReplicationMinimum in-sync replicas2
nodePool.nameNode poolNode pool namebrokers
nodePool.replicasNode poolNode count4
nodePool.rolesNode poolNode roles["controller","broker"]
nodePool.storage.typeNode poolStorage typejbod
nodePool.storage.volumes[0].sizeNode poolVolume size per node10Gi
nodePool.storage.volumes[0].deleteClaimNode poolDelete PVC of a removed nodefalse
nodePool.topologySpreadConstraintsNode poolBroker spreading across nodes, rendered with tpl ([] disables)hostname, maxSkew: 1, ScheduleAnyway
nodePool.affinityNode poolNode pod affinity, rendered with tpl (use nodeAffinity for dedicated nodes){}
nodePool.tolerationsNode poolNode pod tolerations, rendered with tpl[]
probes.livenessNode poolBroker liveness probe, sized for all brokers starting simultaneouslyinitialDelaySeconds: 60, timeoutSeconds: 30, periodSeconds: 30, failureThreshold: 10
probes.readinessNode poolBroker readiness probe, sized for all brokers starting simultaneouslyinitialDelaySeconds: 60, timeoutSeconds: 30, periodSeconds: 30, failureThreshold: 10
kafka-ui.enabledKafka UIKafka UItrue
kafka-ui.service.typeKafka UIUI Service typeClusterIP
kafka-ui.service.portKafka UIUI Service port80
kafka-ui.service.nodePortKafka UIUI NodePort Service port (always created)30081
kafka-ui.connection.clusterNameKafka UICluster name displayed in the UITDP
kafka-ui.connection.bootstrapServersKafka UIBootstrap used by the UI"" (derived from <name>-kafka-bootstrap:9092)
kafka-ui.applicationConfig.auth.typeSecurityUI login typeLOGIN_FORM
kafka-ui.applicationConfig.spring.security.user.passwordSecurityTemporary password for the UI local admin userChangeMe!T3c
security.enabledSecurityBroker authentication and ACLsfalse
security.authorization.providerSecurityBroker authorization: none, simple or rangernone
TDP-Settings.gateway.ingress.enabledExposureRenders Kafka UI Ingressfalse
TDP-Settings.gateway.gatewayApi.enabledExposureRenders Kafka UI HTTPRoutefalse
ingress.ingressClassNameExposureIngress classnginx
ingress.hosts[0].hostExposureIngress hostnamekafka-ui.tdp.local
gatewayApi.gateway.enabledExposureCreates its own Gateway (otherwise uses gatewayApi.parentRefs)false
gatewayApi.kafkaUi.hostnames[0]ExposureHTTPRoute hostnamekafka-ui.tdp.local

Other security parameters are in Security - Kafka. For the complete list, consult the chart's values.yaml or run helm show values for the installed version.

Next steps​