-
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
Ability to map CNI networks to user-configurable interface names inside containers #11534
Comments
Can you give an example of what you would like the interfaces to be named? |
That should be possible with CNI but how should the UI look like? I would prefer to not have an extra cli flag. |
Had a quick look at CRI-O and there already is support for it (also look around for IMO the best design would be as simple as adding the @mheon does it matter what name I'd like to set it to? In my setup the name I'd like to have is |
Ah, so the ask is for the interface name to be user-configurable. |
The problem is we support n networks for a container, so |
We could do something similar to what we used to do for static IP and IPv6, where they're only supported with the CNI backend if you only join a single network - the user experience for that is bad, but not unusable. |
A friendly reminder that this issue had no activity for 30 days. |
Yes, the db changes must be done anyway. My only question is how the cli parts should look like. |
I think that's a good idea - we made them generic when we added them for this sort of eventuality. |
A friendly reminder that this issue had no activity for 30 days. |
/kind feature
Could you consider the ability to map networks to specific interface names inside the container? From what I can see right now every interface is simply named
eth<id>
.A simple use case for this is running a DHCP client on an macvlan interface from inside the container. By mapping a network to a predictable interface name, there would be more assurance on which interface/network it is run. Moreover, this would also become handy when there is the need to bind certain services to specific networks only.
The text was updated successfully, but these errors were encountered: