Configuring Kafka broker node IDs

Learn how you can configure Kafka brokers to get IDs from a specified range.

It might be important to specify the ID range of the Kafka brokers to avoid confusion before creating the cluster. This can be configured on the level of the Kafka node pools. Your chosen range is configured using an annotation in the KafkaNodePool resource.

#...
kind: KafkaNodePool
metadata:
  name: pool-a
  labels:
    strimzi.io/cluster: my-cluster
  annotations:
    strimzi.io/next-node-ids: "[0-99]"

In this example, a range from 0 to 99 is configured. The desired range can be provided by ranges, individual numbers, and so on. The range can also be provided in a reversed order, in that case the IDs are assigned in reversed order if possible.