Skip to content

DeathSwitch for kube-vip when running without leader-election

Is your feature request related to a problem? Please describe.

We have the awesome leader-election mechanism for single-path modes or to elect one leader for multi-path modes. This allows us to drawback all announcements when the API Server becomes unreachable.

A similar feature should be implemented when kube-vip does not elect a leader but rather runs in single-instance or multiple single instances. So when vip_leaderelection: false and svc_election: false.

Describe the solution you'd like

Instead of electing the leader it should use the lease API as a hearbeat to the kube-api. We could either reuse the existing node lease or instantiate our own per kube-vip instance. This feature should be opt-out.

Additional context

This allows a cluster to cut all its ties to the world in case it is not possible to schedule or do anything else on the api server.