Does the Hetzner LB work with bare-metal control planes?
Yes. A Hetzner Load Balancer works with a bare-metal control plane. Syself Autopilot creates the load balancer for the Kubernetes API and adds each bare-metal control-plane server as a target by its public IPv4 address.
You do not have to set anything up for this. The load balancer's address is the cluster's API endpoint, so the endpoint stays the same when a control-plane server is reinstalled or replaced. The load balancer is a Hetzner Cloud product. A cluster that runs only on bare metal therefore still needs a Hetzner Cloud project and API token.
Your own workloads get the same: a LoadBalancer Service on bare-metal nodes gets a Hetzner Load Balancer with the nodes as IP targets.
Workers do not depend on the load balancer alone. A failover proxy on every worker connects the kubelet directly to a control-plane node when the load balancer stops passing traffic. More on that in How do we make the cluster resilient to a Hetzner LB failure?
To set up such a cluster, follow Bare-metal control planes. For the load balancer type and its settings, see Configure a Hetzner load balancer.
Related questions
