-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Wrong interface selection on Vagrant #72
Comments
@selcukusta There is a |
hi @ibuildthecloud! Unfortunately, doesn't work. My cluster info:
It might be wrong, am I right? |
This is a documented behavior of kubelet, where it will select the default interface, which happens to be the NAT network of Vagrant. Try using |
Yes, you're right. Two actions are needed. The first one is;
Another one is add
But the interface selection operation is embedded also. So I couldn't change them. |
Setting For some clarification, consider the following setup:
Each node has two interfaces, one to the wider network ( To achieve this, each node should have their For evidence: setting
To solve this, somehow the flannel interface should be configurable and it looks like the config options may be available in With standard Flannel this is available as an option, which could be used as inspiration: https://github.com/coreos/flannel/blob/0fb471046932ef5f8f363f7daace3d6f4d372dc9/main.go#L118 & https://github.com/coreos/flannel/blob/0fb471046932ef5f8f363f7daace3d6f4d372dc9/main.go#L195-L216 Also, tengentially related: the readme states the VXLAN port is on 4789, but flannel puts it on 8472, as you can see in the command output above. I'll send a PR to change the docs. |
I've also faced the same problem on a setup where I need to use the non-default interface to communicate between the nodes. I've made an attempt to allow this to be configured here: https://github.com/yoink00/k3s It is completely untested but should be complete. I'll be testing this tomorrow. Any comments would be gratefully received. To override the default interface specify '--flannel-iface=eth1' (for example). |
@yoink00: That looks reasonable, you should open a PR to get others to take a look. In the meantime, for people stuck with this: I just went the route of using |
This is available in our latest RC (v0.4.0-rc3). If anyone could test it out, it'd be great! |
Verified by setting |
Does this option ( |
See [this issue](k3s-io/k3s#72) for more details.
When trying to install k3s via Vagrant, Flannel selects the first network interface but the first one is using to bridge guest machines on Vagrant.
First solution is using flannel with external installation (with —no-flannel flag). My suggestion is, run the k3s server with “—iface=enp0s8” flag which will be used for flannel configuration or something like that.
The text was updated successfully, but these errors were encountered: