What I'm trying to solve : Have a Java microservice be aware of total number of Replicas. This replica count is dynamic in nature
Problem: Kubernetes downward API has limited metadata that doesnt include this information. Is there a way to qausi-query a kubectl-like command natively from a container?
Why am I trying to do this: In relation to Kafka, new replica will cause a rebalance. Looking to mitigate rebalancing when new containers come online/offline with additional business logic.
Goal: Create an arbiter java-service that detects replica count for deployment xyz and orchestrates corresponding pods to yield on Kafka connection until criteria is met
also if this is crazy, I wont take offense. In that case I'm asking for a friend