-
Notifications
You must be signed in to change notification settings - Fork 93
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 Request: add subinterface creation #341
Comments
I know we do support |
if there is a way to create the virtual IP from podman generate network, then maybe this just requires a doc patch. tell me how to do it and I'll write the docs |
I don't think we can now - our |
|
I'm talking about a virtual interface on the host, not just an internal IP address in the podman network. |
A friendly reminder that this issue had no activity for 30 days. |
Has anyone tried / considered adding the virtual interface on the host first, then using the host-device CNI plugin? You can put a real interface inside the container this way. CNI just moves the netdev so virtual interface should work as if it was a real one. CNI itself expects to find the "host-device" already exists before it can be used. |
Serious amount of effort would be required here, probably a new CNI plugin. |
A friendly reminder that this issue had no activity for 30 days. |
A friendly reminder that this issue had no activity for 30 days. |
I think other parts of networking have priority over this (improvements to dnsname, for example) |
A friendly reminder that this issue had no activity for 30 days. |
A friendly reminder that this issue had no activity for 30 days. |
A friendly reminder that this issue had no activity for 30 days. |
Hi, I'm new to PodMan. As far as I know, the job of creating a network should be to create a CNI configuration file, and then CNI is responsible for the processing of the corresponding network stack. It would be better if it could be more compatible with docker's usage habits. |
That sounds like a reasonable feature request for the network stack rewrite. |
OK, I get it. Is this a WIP rewrite or should we wait for a long time? |
The early stages have already been done by @Luap99 and we're now finalizing the architecture for the remaining bits; target is to have it ready for Podman 4.0 in January. |
A friendly reminder that this issue had no activity for 30 days. |
A friendly reminder that this issue had no activity for 30 days. |
No, I am not sure what docker does in this case. |
Is this feature added in any of Podman releases so far? If not, what's the plan? We are using Podman 4.02 on RHEL-8.4. Appreciate if anyone could guide on this topic. Thanks! |
Not implemented. The problem as mentioned by @Luap99 still exists: we don't really know what the use case is here. Can you provide details as to what your use case is, what exactly you expect Podman to do, etc? |
My original use-case was just to run CoreDNS to supply local DNS on my laptop. This required it to have a virtual IP in the same range as my laptop's HW interface. |
@mheon , Each application container is associated to different physical/virtual interface using docker macvlan driver. For example: As per docker documentation, it create sub interface automatically when specified as --parent. But same command does not work with Podman. Considering above use case, |
Please file a Bugzilla to get priority for a RHEL fix, but be aware that 8.4 and 8.5 are low likelyhood; to me, this sounds like a Netavark feature, which means 8.6 and up. |
But this only describes a use case, it would help if someone could tell us what does docker do exactly? |
@Luap99 Sounds like https://docs.docker.com/network/macvlan/#8021q-trunk-bridge-mode - we'll need to create subinterfaces with appropriate VLAN tags. |
@mheon, Does this mean above feature (if at all supported on RHEL-8), will work only when someone use Netavark as Podman networking backend? |
Netavark will be fully supported on RHEL 8 as of 8.7; it's tech preview in 8.6. Given our deprecation of the CNI stack and the requirement that changes would be made to CNI as part of this I do not see us adding this to CNI. |
Have you tried manually creating the sub interface? I use macvlan with sub-interfaces all the time, but without vlan. What I've read is a bit confusing so can you clarify? Is the ask to just automatically create the sub interface on the host (and assume that .x is to be used for vlan id x on the parent interface.) Or is there more to it? |
Going to transfer this to Netavark, as the fix can live there |
/kind feature
Description
docker network create
allows automated creation of trunk bridge mode vitual IPs that map to each created container if you call a new subinterface name, such as "eth0.2". This is useful for running services under podman that might normally get their own virtual IP, such as serving DNS.It would be nice to have this option in podman as well, particularly for folks who are moving services from native executables to podman containers.
Realistically, it will take a significant amount of work to make this happen since CNI is more complicated than whatever docker is doing, but I wanted to get this in the queue in case someone was looking for networky things to hack on.
While you're implementing this, it would be nice to have podman support the
--parent
switch for syntax compatibility with docker network createReferences
The text was updated successfully, but these errors were encountered: