Using leader elector which introduced in recent release, I have three pods on election, at the time, I found there are no one is working, all of them have experience the acquire->renew->stop workflow. After that, the pod will not acquire anymore, I see such implementation in your code, which should be a problem.
Do we need to add loop in our application code? I see there are no such code in your example.
@wu8685