I created a simple example for Leader Election on Kubernetes: syself/pykubeleader: Simpe Python Application which uses Kubernetes Leader Election But it uses the old configMap based approach: from kubernetes.leaderelection.resourcelock.configmaplock import ConfigMapLock How to use the new Lease based way with Python? Continue reading...