-
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 customize network namespace of pods #2808
Comments
@pcguy85 Any chance you could open a PR to fix this? |
@rhatdan I started a fix for this but I feel like there should be larger structural changes to the infra container. We will soon end up duplicating a bunch of configuration code to set up namespaces for the infra container. I was thinking of trying to use some of the |
@rhatdan at this point, i am wondering if a blog written explicitly on this would suffice. |
@weirdwiz Could you take a look at this? |
Agree with @haircommander that this will probably require significant structural changes to the infra container. I would not work on this until he and I have had a chance to hash out how we want to handle that. |
^ yes, I don't think it make sense to continually extend the capabilities of the infra container and further duplicate container creation code. There are tons of things we can add to pod if we change the code paths in this way |
I wasn't able to take a look at this. |
What is the workaround until this feature is implemented? Say, if I want to put a complete pod in a different network? (Temporarily) change the default network as configured via cni? |
That's what I have in mind as well. @baude might now some nice tricks? |
This issue had no activity for 30 days. In the absence of activity or the "do-not-close" label, the issue will be automatically closed within 7 days. |
@baude, what's your take on the issue? |
I think this is a good issue, and should be something we work on and support. |
I think we need to address #3993 is a similar issue. We need to change |
alternatively, we could have something like Where In this way we allow even more flexibility as the container can be customized between its |
Being able to set the network on pod create would be very useful to us. Currently creating a container with the network and then attaching each other containers network to it seems hacky. Adding network on pod create like -P seems more logical. |
This issue had no activity for 30 days. In the absence of activity or the "do-not-close" label, the issue will be automatically closed within 7 days. |
Friendly ping. @giuseppe, do you have cycles to pick this? |
I think we need to unify pod create with container create, so that we can expose all the options. Unfortunately it is not a trivial amount of work :/ |
We have a partial unification in the works - I'm working up cards for it. Hopefully will have (at least network) related options exposed over the next few sprints. |
Long-term we're moving away from an infra container, hopefully using the work @haircommander is doing for CRI-O for that purpose |
@mheon is the PR you are currently working on going to help with this or do we need to wait for pinns? |
This will be handled by my PR, I'll add a link |
Fixed by #5241 |
Enables most of the network-related functionality from `podman run` in `podman pod create`. Custom CNI networks can be specified, host networking is supported, DNS options can be configured. Also enables host networking in `podman play kube`. Fixes containers#2808 Fixes containers#3837 Fixes containers#4432 Fixes containers#4718 Fixes containers#4770 Signed-off-by: Matthew Heon <[email protected]>
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind feature
Description
podman commands
create
andrun
provide options to customize the container's network namespace (--net
,--ip
, etc.). However the podmanpod create
command doesn't have any similar options. To my (still limited) podman knowledge the pod's network namespace configuration needs to be associated with it's infra container. Is there any way, for example, to assign a static IP address to the infra container or change the network it is connected to? Imho the ability to further customize pods' network namespace could make it easier to integrate podman with existing infrastructure.Or is there already a way to do this? As said, my podman knowledge is still limited.
The text was updated successfully, but these errors were encountered: