flant / addon-operator

A system to manage additional components for Kubernetes cluster in a simple, consistent and automated way.
https://flant.github.io/addon-operator/
Apache License 2.0
483 stars 27 forks source link

HA mode #454

Closed miklezzzz closed 7 months ago

miklezzzz commented 7 months ago

Overview

Provides support for High-Availability mode to addon-operator by means of leases and leader elections. All necessary changes are represented in examples/002-startup-global-high-availability/ directory.

What this PR does / why we need it

This pr enables addon-operator to be run in a High-Availability mode when one pod is designated as a leader and does all the heavy lifting while additional pods wait for the leader to fail and then to take over its duties. Also, some minor changes like providing an example for HA configuration and other fixes around the repository.

Special notes for your reviewer