-
Notifications
You must be signed in to change notification settings - Fork 369
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
Pod traffic doesn't go through OVS when Antrea agent is in networkPolicyOnly mode #4228
Comments
@luolanzone could you share more information on how to reproduce? I used the following steps: eksctl create cluster -N 2
kubectl apply -f https://raw.githubusercontent.com/antrea-io/antrea/main/build/yamls/antrea-eks-node-init.yml
kubectl apply -f https://raw.githubusercontent.com/antrea-io/antrea/main/build/yamls/antrea-eks.yml And I was not able to reproduce (I tried twice, with 2 different clusters). There are only 2 Pods that need to be restarted (the core-dns Pods, only Pods on the Pod network), and I observe that they are restarted correctly by
The routes for these Pods are correct:
|
@antoninbas yes, I created a Pod before deploy Antrea. I will try it today and let you know the result. |
I tried in two clusters, both works this time. the original environment is cleaned up, I will keep this in mind and to see if it's possible to reproduce it or not. But I found that if I delete all Antrea related deployment, then create a new Service deployment without Antrea, I will see below errors, it this expected?
|
Running |
Thanks. I feel resource clean up may be done by a |
There are some issues with |
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment, or this will be closed in 90 days |
Describe the bug
I followed this guide to deploy an EKS cluster with Antrea in networkPolicyOnly mode.
After deployment completed, I tried to curl a Service from one Pod. I didn't see any packets counts increased in OVS flow rules if I run
ovs-ofctl dump-flows br-int
. With a few of troubleshooting, I found that expected routes are not correct. the Pod IP's route is still via its own interface eg:110.13.37.137 dev eni4f80b44affe scope link
but it should beantrea-gw0
eg:110.13.47.25 dev antrea-gw0 scope link
.I can see the log from the Pod
antrea-node-init-*
, existing containers have been restarted by it successfully, but seems they are not handled by Antrea correctly.I don't know if there is any known solution to fix this kind of issue, but the Pod route is correct after I restarted the Node. I feel reboot is not a good solution for such kind of issue, so document this issue here to see if anyone familiar with networkPolicyOnly mode can help on it.
To Reproduce
Follow the guide to deploy an EKS cluster and deploy Antrea in networkPolicyOnly mode. This issue may happen or may not happen. I created two clusters, one has this issue, another one doesn't have this issue.
Expected
All non-hostNetwork Pods routes should be updated to
antrea-gw0
, so OVS can take over the traffic.Actual behavior
Versions:
Additional context
The text was updated successfully, but these errors were encountered: