-
Notifications
You must be signed in to change notification settings - Fork 9
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
[Reserved IP] WARNING no available reserved IPs for node #12
Comments
Hello 👋 did you create a reserve IP in the Instance tab (and in the same zone?) ? Or in the loadbalancer tab? |
Many thanks for your quick feedback! 👍 |
I see that node |
Yes it's correct, the autoscaled nodes are in the
I reported a different one just to avoid to write here the real configuration ; ). You got me 😆 |
Did I miss something? |
For me it looks like the IP is not listed in the |
Yep! I've reserved four IPs from Project Dashboard -> Compute -> Instances -> Flexible IPs
After that I deployed a generic deployment with replica four that pointed to a node pool (with autoscaling on) But just the node
|
Do you see them with the cli |
Yes, before deploying the pods, all IPs are free, after the deployment just one IP has been attached on the new server
It's strange because it's always the same IP: x.x.x.98, is this IP special for some reason? |
The IPs reserved were in the same zone of the nodes. |
It's weird, Could you modify the to add a log when listing the IPs and run it to see the output of the |
Thanks @Sh4d1 , could you please point me to the line code to modify? Should we print
|
yep printing ipsList will help ! You can loop over the entries and print the object with the |
Hello,
After deployed the controller to a Kubernetes Kapsule cluster at Scaleway
kubectl create -f https://raw.githubusercontent.com/Sh4d1/scaleway-k8s-node-coffee/main/deploy.yaml
set the secret
set the configuration
Deployed a generic deployment that pointed to a node pool (with autoscaling on)
I got the below warning after the first node came up
I0915 13:46:52.944681 1 reserved_ip.go:18] adding a reserved IP on node scw-t2-k8s-dev-pool-test-reservedip-c7c12842e8
W0915 13:46:53.241201 1 reserved_ip.go:60] no available reserved IPs for node scw-t2-k8s-dev-pool-test-reservedip-c7c12842e8
Checking the related code
It seems that ip and err are
nil
because ofWe know the result of the function getFreeIP() yet:
nil
nil
Therefore the following statement is always false
ip.Server == nil && stringInSlice(ip.Address.String(), c.reservedIPs)
Could you please help me on addressing the issue?
I really appreciate any help you can provide.
Best regards
Michele
The text was updated successfully, but these errors were encountered: