Skip to content
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: Podman network support #42

Closed
andsky1234 opened this issue Jan 17, 2023 · 5 comments
Closed

Feature request: Podman network support #42

andsky1234 opened this issue Jan 17, 2023 · 5 comments

Comments

@andsky1234
Copy link

Problem


On current version of the system role there is no way to configure which network to run the pods on. My problem is that dns resolution between pods doesn't work for me on RHEL 8.6 and podman 4.2. It does work on Fedora 37 which has podman 4.3 which adds a default podman-kube network but I stilll can not add any custom networks using this role.

Desired solution


It would be nice to pass a variable to the role specifying a network name to use. The role would take care of creating the network if it doesn't exist and attach the pods to it.

@benblasco
Copy link

benblasco commented Mar 22, 2023

This could probably be extended to apply to any arbitrary parameter that is ultimately passed to the containers.podman.podman_play command, such as --userns=mode etc. However I believe that this would require some changes to the containers.podman.podman_play module itself to support this functionality. Thoughts @briansmith0 @rhatdan ?

@benblasco
Copy link

This is relevant to my broader comment. Happy to create a new issue if deemed to be a different problem to solve.

containers/ansible-podman-collections#544

@briansmith0
Copy link
Contributor

@vrothberg if the role were to support Quadlet, would it address this?

@vrothberg
Copy link
Member

@vrothberg if the role were to support Quadlet, would it address this?

Yes, Quadlet supports that. podman kube play has a --network flag which allows for doing that when using K8s YAML, which in theory could be exposed by the role without Quadlet.

@richm
Copy link
Contributor

richm commented Jun 29, 2023

#78

@richm richm closed this as completed Jul 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants