I have a Spring boot application running a Kafka consumer that consumes messages from a single Topic having two partitions(partition-0 and 1). The application is deployed as a single Kubernetes pod. I have scaled the application and now it's running in two pods. But the client Id prefix of the consumer running in both pod has the same clientIdPrefix 'client-consumer-0'.
How to generated clientIdPrefix unique to the pod?