-
Notifications
You must be signed in to change notification settings - Fork 76
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
Auto-detect the default BYOH interface for hosts #466
Comments
Hii @sachinkumarsingh092 @anusha94 I would love to work on this issue. Reading the description I understand as of now the codebase is used to detect and update the host network interface manually but with upgradation of kube-vip images to v0.4.1 we could use --autoInterface option. Could anyone point where I should make changes to leverage the required things :)) |
/assign @VibhorChinda |
Hey @VibhorChinda, thanks for your interest in this! So the way we currently detect the interface for the BYOH host is shown in this function (it traverses all the interfaces and matches the default network IP for the default gateway and assigns the default Interface name). This is saved as DefaultNetworkInterfaceName and used in our templates with the The So for now you can start by trying if you can still achieve this without the @anusha94 please correct me if I missed anything. |
So what I have understood is I have to remove the env variable (vip_interface) from the file [Line-82, 83] And it will automatically detect right ? |
Make similar changes for the other templates mentioned in PR #462. |
/unassign @VibhorChinda |
Describe the solution you'd like
We have upgraded kube-vip images to v0.4.1 (#462). This version has features to auto-detect the default interface for VIP (related PR) using
--autoInterface
option.Currently, we detect and update the host network interface manually (agent/host_registrar.go#L86-L131). Having upgraded to the given version, we can now leverage the auto-detection feature and refactor the agent to use this instead of manual detection and updates.
Environment:
kubectl version --short
):/etc/os-release
): Ubuntu 20.04.4 LTS (Focal Fossa)The text was updated successfully, but these errors were encountered: