Azure / aks-app-routing-operator

Kubernetes operator that implements AKS Application Routing
https://learn.microsoft.com/en-us/azure/aks/app-routing
MIT License
30 stars 20 forks source link

add leader election and multi replica support #64

Closed OliverMKing closed 1 year ago

OliverMKing commented 1 year ago

Description

Adds full leader election and multi replica support to the operator. This is a requirement for resiliency through a PDB and is needed as clusters move towards more automatic upgrade scenarios. A PDB + multiple replicas is the best way to ensure the operator continues to function after a cluster upgrade (and really throughout all scenarios).

You can see below how this is an active-passive HA model where only the replica with the leader election lock performs actions. image

Type of change

Please delete options that are not relevant.

How Has This Been Tested?

Tested locally + e2e. This change is really just taking advantage of built-in controller runtime features which is a well tested and well established k8s library.

Checklist:

OliverMKing commented 1 year ago

/ok-to-test sha=63d1a5c

OliverMKing commented 1 year ago

/ok-to-test sha=63d1a5c

OliverMKing commented 1 year ago

/ok-to-test sha=63d1a5c

OliverMKing commented 1 year ago

/ok-to-test sha=70daac1