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

Applying Kubernetes network policies to containers with SR-IOV VF #397

Closed
edgenfv opened this issue Nov 12, 2021 · 5 comments
Closed

Applying Kubernetes network policies to containers with SR-IOV VF #397

edgenfv opened this issue Nov 12, 2021 · 5 comments

Comments

@edgenfv
Copy link

edgenfv commented Nov 12, 2021

I am using Kubernetes to create containers mapped with SR-IOV VF. For this purpose, I use Kubernetes SR-IOV network device plugin.
Now I need to apply Kubernetes network policies to the attached SR-IOV VF.
Can the SR-IOV network device plugin enforce the network policies to the SR-IOV VF.

@adrianchiris
Copy link
Contributor

Hi @edgenfv , enforcing network policies is a k8s network plugin responsibility (CNI)

for secondary network there is:

https://github.com/k8snetworkplumbingwg/multi-networkpolicy
https://github.com/k8snetworkplumbingwg/multi-networkpolicy-iptables

@SchSeba
Copy link
Collaborator

SchSeba commented Dec 28, 2021

Hi @edgenfv another comment on the project shared by @adrianchiris this will only work on sriov nics attached to kernel drivers, not DPDK drivers.

@SchSeba
Copy link
Collaborator

SchSeba commented Jan 3, 2022

one more comment in the deployment (https://github.com/k8snetworkplumbingwg/multi-networkpolicy-iptables/blob/master/deploy.yml#L99) you need to add this line to support also sriov

- "--network-plugins=macvlan,sriov"

@adrianchiris
Copy link
Contributor

@edgenfv is there any more input you require ?

@SchSeba
Copy link
Collaborator

SchSeba commented Mar 28, 2022

no update in about 2 months closing this issue

@SchSeba SchSeba closed this as completed Mar 28, 2022
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

3 participants