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

[Reserved IP][Feature request] The controller should wait Control plane is aware of IP change before applying the label #8

Open
sogos opened this issue Apr 22, 2021 · 2 comments

Comments

@sogos
Copy link

sogos commented Apr 22, 2021

Hello,

I am using the reserved ip feature and i observe the label reserved-ip=true is applied 2 or 3 minutes before the reserved IP is actually installed on the node.

I use this label to authorize my pods to deploy on these nodes and I would like Kubernetes to be aware of the change of IP before it deploys

Ideally a pending status, then a done status :)

Thanks

@jtherin
Copy link

jtherin commented Apr 22, 2021

You means in a kubectl get node ?
Instance call to set the ip is done before setting the label and instance api take less than 30s to update the NAT.

@sogos
Copy link
Author

sogos commented Apr 22, 2021

I don't know exactly but the Node.Address.ExternalAddress is not updated before several minutes.
My goal is to notify the managed Load Balancer as soon as possible of the Node Ip change.

Probably, the behavior is good and I need to implement something else

Edit :

I writed a small program in go to monitor timings:

2021/04/23 09:50:05  info node added:scw-staging-staging-small-fe32325dac3f4aefac2f
2021/04/23 09:50:05  info node: scw-staging-staging-small-fe32325dac3f4aefac2f external ip is not yet available
2021/04/23 09:50:05  info node: scw-staging-staging-small-fe32325dac3f4aefac2f external ip is not yet available
2021/04/23 09:50:05  info node: scw-staging-staging-small-fe32325dac3f4aefac2f external ip is not yet available
2021/04/23 09:50:05  info node: scw-staging-staging-small-fe32325dac3f4aefac2f external ip is not yet available
2021/04/23 09:50:05  info node: scw-staging-staging-small-fe32325dac3f4aefac2f external ip is not yet available
2021/04/23 09:50:17  info node: scw-staging-staging-small-fe32325dac3f4aefac2f label reserved-ip
2021/04/23 09:52:31  info node: scw-staging-staging-small-fe32325dac3f4aefac2f ip changed: XXX.XX.XXX.XX > Y.Y.Y.Y

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

No branches or pull requests

2 participants