-
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
Add support for specifying CNI networks in podman play kube #5620
Add support for specifying CNI networks in podman play kube #5620
Conversation
ad18a5d
to
399f7a8
Compare
I don't know if we want to do this - should we be sourcing from the Kube YAML instead? @haircommander thoughts? |
@mheon I would prefer specifying this on yaml level but I have not found an option to declare a network for a pod in the specs. |
yeah I also wouldn't go the flag route. There are some first class pod API features that relate to pod networking: the dnsConfig object would take care of finally, you can replicate there doesn't seem to be a way to specify |
I suppose |
I am more than happy to implement this in yaml if you can help me with the specification as I don't know how to specify the network options in yaml syntax. it would be a lot easier to implement this in |
were the above links not enough to get started? do you have specific questions about them?
As an example, when iterating through the container objects, you can access does that help? |
nvm on that, we already do something similar in |
7672762
to
dfd2884
Compare
Thanks for your remarks I changed my PR to just add |
a58c719
to
0872d78
Compare
Concur that just --network is appropriate... We probably also want to restrict it to only listing a set of CNI networks - we should not support |
Any tests possible? Code LGTM, just a few nitty doc things. Thanks @cfelder ! |
0872d78
to
5ecadbf
Compare
Signed-off-by: Christian Felder <[email protected]>
Fixes: containers#5609 Signed-off-by: Christian Felder <[email protected]>
5ecadbf
to
91dbdff
Compare
Ping. Let's get this in. |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cfelder, mheon The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm |
As far as I understood it is not possible to define container network on the yaml level (https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#pod-v1-core).
I am adding networking options to
podman play cube
though.