-
Notifications
You must be signed in to change notification settings - Fork 8
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
[Feature/Idea] Add/Adjust node label(s) on what node has the VIP active #3
Comments
Glad to hear 👂🏾. When I have time I will add support for multiple IPs too. |
Hi there, I should have some time at the weekend to look further into it but anything you can come up with would be great, always can tweak and send the tweaks to you. I've been going through the code which you have created and I think I see how it's done. I have made a few minor tweaks to the script atm and will post a revised one soon. This just adds an extra-label right now to the nodes so you can tie it to containers easily (i.e. containers follow VIP around). As for the extra IP, not sure yet how that's done, the bash side I can see but the k8s I don't (currently). I must admit I am just starting on the k8s path myself too, its that side I don't yet fully understand but have been a docker swarm user for a long time now, so docker itself isn't a problem, it's just the k8s way that is. Kind Regards. |
Maybe we could "loop" through a "key/value pair array" like |
Nice idea. |
Just an idea, it would be good if you could add say a label called
vip=active
or something on any node which has the VIP active.But the issue is, no access to kubectl and even if that's on the image, that's not really very secure and I don't know k8s well enough yet to find an alternative solution. So if anyone got any ideas, please let me know.
Without this feature, you can't like bring up a service which has host-based networking which can follow around the VIP.
i.e. changing the script to something like this:
Update
Found away without using kubectl
-Working on some updates will post when done.-
Update
This is quick and dirty, but this does work.
This sets
vip=false
to every node and then sets justvip=true
on the node which has the VIP.I am sure there's a better way to do it but currently, this is the only way ive found, while not elegant, it does work for now.
The text was updated successfully, but these errors were encountered: