Configuring ClusterId via Custom Resources: Exploring Options #10082
aswinayyolath
started this conversation in
Ideas
Replies: 1 comment 3 replies
-
The cluster ID is generated as unique. So I'm not sure what is the exact problem you are trying to solve. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Strimzi generates a unique clusterId for each Kafka cluster it manages. This identifier can be retrieved using the
kubectl get kafka
command, where you'll observe a randomly generated string by the Strimzi operator.kubectl get kafka my-cluster-2 -n strimzi-2 -o=jsonpath='{.status.clusterId}'
Similarly, you can obtain the clusterId for Kafka node pools with:
kubectl get kafkanodepool my-pool-2 -o=jsonpath='{.status.clusterId}'
Now, let's discuss the possibility of overriding the clusterId with a user-defined value via Strimzi's CR configurations. Is this feature currently supported?
This will be useful for scenarios where you want more control over the cluster id. One such example could be creating stretch clusters where all brokers across different Kubernetes environments must use the same cluster id.
Beta Was this translation helpful? Give feedback.
All reactions