I have 2 application with 3 replica each deployed within the same namespace in same cluster. Both of these application can have singleton instance running at a time.
Can i use leader elector kubernetes in any way to have one leader for each deployment running at a time in same namespace ??
Tried leader elector but once deployed only one out of total 6 replicas for 2 deployment are coming up even when leader elector is implemented as sidecar in each deployment separately.