l7mp / stunner-gateway-operator

STUNner Kubernetes Gateway Operator
Apache License 2.0
15 stars 6 forks source link

High availability mode #53

Closed rg0now closed 2 months ago

rg0now commented 3 months ago

Currently operator restarts also restart the dataplane pods, which disconnects all active sessions. This is not desirable when running in high availability mode and the restart happens due to, e.g., a node failure.

Probably there are two, largely independent reasons for this.

First, the operator undergoes a shutdown cycle to invalidate Gateway API statuses before terminating. This must be disabled in high availability mode.

Second, the operator does not watch dataplane deployments, it just blindly recreates the deployments in every rendering cycle and relies on the Kubernetes controller runtime to silently ignore updates that don't change anything. This breaks for some reason when the operator is restarting.

This issue is to track progress on implementing high availability mode. A possible workflow could be to have a command line switch that would enable graceful operator restarts.

rg0now commented 2 months ago

Fixed in https://github.com/l7mp/stunner-gateway-operator/commit/147873fdd5f785f5d0392798983f31c9b466a36c