https://rancher.com/ logo
#k3s
Title
m

mammoth-winter-72426

05/23/2023, 3:56 PM
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!
c

creamy-pencil-82913

05/23/2023, 4:07 PM
Yes, this is how almost all leader-elected components in Kubernetes function.
m

mammoth-winter-72426

05/23/2023, 4:09 PM
Your awesome @creamy-pencil-82913 thanks for reaffirming