Open
kubernetes/kubernetes
#131632Description
What Problem are you trying to solve?
We have a use case where we would like to dynamically label a lease with the availability zone of the holder. This would allow us to be able to easily identify which replica holds the lease.
This would be a non-breaking change as users would need to opt in to setting custom metadata.
Are there any workarounds?
We can implement a custom controller that reconciles against the lease and tries to modify the existing labels, but this reconciliation would need be guaranteed to happen within the LeaseDuration in order to avoid race conditions. This is not ideal.
If there are no objections, I will be working to add this functionality in a follow up PR
Metadata
Metadata
Assignees
Labels
No labels