Good morning everyone! I was going through more kubernetes documentation today and I came across a component called “Leases” and after reading the page it seems like leases are a good way to have multiple replicas of a deployment for example…. And the “Lease” is configured so all replicas elect only 1 leader to be running I/O at one time and the rest of the replicas just act as standby instances ready to take leadership role if the leader replica pod dies. Is my thinking correct here regarding the usage? Obviously you have to implement code for your applications to use the lease appropriately. Cheers guys!
05/23/2023, 4:07 PM
Yes, this is how almost all leader-elected components in Kubernetes function.
05/23/2023, 4:09 PM
Your awesome @creamy-pencil-82913 thanks for reaffirming