Skip to content

Load balancer initialisation fails #1642

Answered by mysticaltech
hvraven asked this question in Q&A
Discussion options

You must be logged in to vote

This behavior stems from how the Hetzner Cloud Controller Manager (hcloud-ccm) handles load balancer names. The CCM typically attempts to create or rename a load-balancer resource to match the Kubernetes Service object. In your setup, there is already a load balancer named k3s-nginx (created by Terraform), and the CCM is also trying to manage (or rename) another load balancer to the same name, which leads to the uniqueness_error.

In effect, you ended up with two load balancers:

  1. k3s-nginx: Unconfigured, owned by Terraform (or tofu), but recognized by the CCM as already existing.
  2. Another LB with a random name**: That the CCM manages (and attaches to the nginx-ingress-nginx-controller Servi…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mysticaltech
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1581 on February 16, 2025 21:52.