Kubernetes is a well-known distributed system for managing containers. It is essential to elect a leader among the replicas to maintain data consistency and coordinate tasks when deploying certain stateful services in a cluster. There are already many leader election algorithms used in distributed systems, but the cost of implementing these algorithms in a Kubernetes cluster is exorbitantly expensive. The existing leader election algorithms in Kubernetes do not take into account the state of the nodes in the election process for distributing the leader, resulting in unbalanced utilization of t...