[Monarch butterfly image]
s/monarch/leader/g
Kubernetes component which implements monarch election for resources in Kubernetes cluster.
- Opens API which given a query and identifier of the pod in the form of
Name of Deployment/Namespace of Deployment/Name of Pod
returns if the pod is a monarch - Automatically parses deployments in the kubernetes clusters with the annotation `` and automatically maintains monarch information
- Maintains its data in its own separate configmap
- Returns false for the queries on pods which are not registered (i.e. do not have correct annotation) - this is to prevent race condition
Notes:
Use Downward API to extract Pod name in run-time