-
Notifications
You must be signed in to change notification settings - Fork 893
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 the networkpolicies to cicd tests #2718
Comments
Currently the CI pipeline uses KinD with its native KindNet CNI. This does not support enforcing NetworkPolicies (it might in the future, according to kubernetes-sigs/kind#842), so we will have to install a separate CNI for this such as Calico. It might also be possible to use the Istio CNI since we already use this: https://github.com/kubeflow/manifests/tree/master/common/istio-cni-1-22 As an alternative we could convert all KinD usage to K3d, since that supports netpols out of the box (using Flannel CNI). It is (in my opinion) also easier to use, since it supports Ingress and is in general just easier to configure |
@juliusvonkohout can you explain this issue bit more and the exact place where we use KinD in manifest? |
I installed the kubeflow in my machine. And when I checked there were multiple network policies are there. And as far as I know Istio CNI supports network policies. Since istio is currently intergrated with the kind cluster, do we need a different plugin? And if so, are the existing network policies not working now? |
Please Test whether the networkpolicies have any effect. You can do so with a pod and curl. |
@AndersBennedsgaard @juliusvonkohout
Therefore networkpolicies work with isto. We don't need an external calico plugin to activate networkpolicies. So, we can close the PR #2820 |
Are you sure that this is not done by a default authorizationpolicy? did you make sure that nginx does not run with an istio proxy? did you test whether it works if you allow it in the networkpolicy? |
Yes, the I actually found somewhere that the Istio CNI still requires a network plugin (like Calico), for handling the networking necessary for NetworkPolicies and other things. So we still need a network plugin |
Actually procedure I followed is,
So due to enabling Istio in test namespace it does run with the Istio proxy pod Therefore, we have to add external plugin for managing network policies. I will do so and update you |
kind has released 0.24 that includes network policies https://github.com/kubernetes-sigs/kind/releases/tag/v0.24.0 |
@hansinikarunarathne this might make your life easier :-D |
Yes, I checked on it. I will update the Kubernetes version and Kind installation version. I will create a new PR instead of making changes to #2820 |
We can close the PR #2820 and merge the PR #2843 @juliusvonkohout if you have any suggestions let me know |
Solved in #2843 @hansinikarunarathne please link PRs to issues on the right hand side. |
Validation Checklist
Version
master
Describe your issue
We want them especially for the model registry @lampajr
Steps to reproduce the issue
No bug, just an enhancement
Put here any screenshots or videos (optional)
No response
The text was updated successfully, but these errors were encountered: