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

Cannot set a private IPv4 for load balancer #837

Open
nicolaracco opened this issue Jan 2, 2025 · 0 comments
Open

Cannot set a private IPv4 for load balancer #837

nicolaracco opened this issue Jan 2, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@nicolaracco
Copy link

TL;DR

I'm trying to set the annotation load-balancer.hetzner.cloud/private-ipv4 to force a specific IPv4 address, but the load balancer always get the first available IP in the network.

Expected behavior

To be able to properly set a custom IPv4 address on the load balancer

Observed behavior

These are my current annotations:

load-balancer.hetzner.cloud/location: fsn1
load-balancer.hetzner.cloud/name: lb-external
load-balancer.hetzner.cloud/use-private-ip: "true"
load-balancer.hetzner.cloud/uses-proxyprotocol: "true"
load-balancer.hetzner.cloud/private-ipv4: "10.0.0.101"
load-balancer.hetzner.cloud/http-redirect-https: "false"

but the load balancer keeps being provisioned with the 10.0.0.10 IP (which is the first one available).

Minimal working example

No response

Log output

When the service annotations are updated I always see this log, but I'm not sure if it's related:


| I0102 12:15:42.056198       1 load_balancers.go:187] "reload HC Load Balancer" op="hcloud/loadBalancers.EnsureLoadBalancer" loadBalancerID=2250377                                                                                                        │
│ I0102 12:15:42.480807       1 event.go:389] "Event occurred" object="default/traefik" fieldPath="" kind="Service" apiVersion="v1" type="Normal" reason="EnsuredLoadBalancer" message="Ensured load balancer"


### Additional information

I already tried to delete the load balancer, then the service, to force hccm to re-provision the load balancer
@nicolaracco nicolaracco added the bug Something isn't working label Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant