Skip to main content

Why did my load balancer go back to lb11 or lose its targets after the upgrade to 1.37?

Syself support For release

The load-balancer.hetzner.cloud/type annotation on the Service decides the type of its Hetzner load balancer. A Service without the annotation gets an lb11. If you resized the load balancer in the Hetzner console and never set the annotation, the cloud controller manager changes it back to lb11.

Set the annotation to the type you want, and the cloud controller manager resizes the load balancer within seconds. It keeps its addresses:

plaintext
				kubectl -n <namespace> annotate service <name> load-balancer.hetzner.cloud/type=lb21
			

The load balancer has no targets 

A load balancer that does not fit an lb11 cannot be changed back. An lb11 holds 5 ports and 25 targets. The Service then shows this event:

plaintext
				SyncLoadBalancerFailed ... changeType: number of existing services is higher than load balancer type max services
			

While the event repeats, the cloud controller manager does not update this load balancer. It keeps serving with the nodes it has, but new nodes are not added as targets. When the old nodes are replaced, as in an upgrade, it has no targets left and the Service is down.

The fix is the same: set the annotation to the type the load balancer has in the Hetzner console. The targets are back within seconds.

Still stuck?

Prepare your case, then email us.