How do we make the cluster resilient to a Hetzner LB failure?
Syself Autopilot covers a Hetzner Load Balancer failure on the Kubernetes API path: a failover proxy on every worker node keeps the kubelet connected to the API server. For your application traffic, you add failover in front of the load balancer.
A Hetzner Load Balancer runs as a single instance with a failover. Load balancers are stateful, so Hetzner designed that failover to be fast when hardware fails or the network has an outage.
Control-plane load balancer. On a worker, the kubelet reaches the API server through a failover proxy on the same node. If the load balancer stops passing traffic, the proxy connects to a control-plane node directly. Workers stay Ready, your pods keep running and no node is replaced because of the outage. Control-plane nodes talk to their own API server and need no proxy. Your own kubectl access and nodes that join the cluster still go through the load balancer, so they wait until it is back.
Application load balancers. Each type: LoadBalancer Service has its own Hetzner Load Balancer, and traffic to that Service depends on it. To cover that path, put DNS failover or a CDN in front. It needs a second address to switch to, for example a second LoadBalancer Service for the same pods.
How the failover proxy works is part of Self-Healing and Node Replacement, and you can check that it is active on a node with Debug node networking. A whole location going down is a different case. For that, read How do we survive a datacenter outage?
Related questions
