-
Notifications
You must be signed in to change notification settings - Fork 11
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
support device in route add #13
Comments
Hi @rootfs , thank you for the comment. If you use route-override for net-attach-def, route-override automatically add device name of the net-attach-def because CNI config does not know the interface name created by the config. For example, let's imagine that a pod is created with 4 interface (cluster network and 3 additional). At that time,
Sample yaml:
At that time, you can add route-override cni in net-attach-def, test2, as following.
CNI config does not know the device name because interface name is assigned dynamically at pod creation. User may create another pod as following. At that time, interfaces are created with different name from previous one such as:
If the interface is created outside of CNI (e.g. initContainer creates some interface), then CNI cannot touch the interface because CNI can change configuration of the interface created by CNI. At that time, you need to change it in another way (e.g. Does it make sense? |
For setups that have multiple interfaces, an interface name is needed when adding route, i.e.
ip route add 10.123.123.1/32 dev br1
@dougbtv
The text was updated successfully, but these errors were encountered: