Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix LoadBalancer service using both public and private IP of LB's #1280

Merged
merged 2 commits into from Mar 16, 2024

Conversation

ricristian
Copy link
Contributor

@ricristian ricristian commented Mar 15, 2024

When a new service of type LoadBalancer is requested k3s will use besides the public IPv4 & 6 of the Hetzner LB also the private ip of that LB which is wrong.

This also fixes the external-dns updating A records with the private IP of the LB

With HCLOUD_LOAD_BALANCERS_DISABLE_PRIVATE_INGRESS: true ( this is the default value )
Screenshot 2024-03-15 at 21 04 19

external-dns will detect external load balancer IP's and will create following A records: ( cloudflare, but with other dns providers will be the same issue )
Screenshot 2024-03-15 at 21 07 40

With this new change:

With HCLOUD_LOAD_BALANCERS_DISABLE_PRIVATE_INGRESS: false
Screenshot 2024-03-15 at 21 05 12

With this new change external dns won't create the A record for the private iP

…tzner LB

When a new service of type LoadBalancer is requested k3s will use besides the public IPv4 & 6 of the Hetzner LB also the private ip of that LB which is wrong. 

This also fixes the external-dns updating A records with the private IP of the LB
Copy link
Collaborator

@mysticaltech mysticaltech left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense, thanks for the addition @ricristian.

@mysticaltech mysticaltech merged commit 5ae0545 into kube-hetzner:master Mar 16, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants