You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, when I set up a Kind cluster with Antrea 2.1 and enabled the L7FlowExporter, I noticed that the L7 flows will be generated only when the annotation is visibility.antrea.io/l7-export=both. There will be no L7 flows when the Pod annotation is visibility.antrea.io/l7-export=egress or visibility.antrea.io/l7-export=ingress
To Reproduce
Create a Kind cluster with Antrea installed and L7FlowExporter/FlowExporter configured with an ipfix-collector, sample configs and yamls are:
Run kubectl annotate pod sample-pod visibility.antrea.io/l7-export=egress to add the annotation to the sample-pod Pod.
Run a simple http server in another Pod sample-pod-1 via python python3 -m http.server 8000
Run curl command inside of the sample-pod Pod curl http://172.2.1.7:8000 to generate egress traffic
Run a proxy for the service ipfix-collector 'kubectl port-forward service/ipfix-collector 8080:8080 -n kube-system &' and execute curl http://localhost:8080/records?format=json to get the flow records. The expected http flow records are not showing.
However, an expected flow record similar like following should be reported:
I captured the traffic on the interface antrea-l7-tap0 and antrea-l7-tap1, only one direction traffic can be captured when the annotation is 'ingress' or 'egress', I suspect the suricata can't handle the traffic when there is only one way traffic being forwarded to it.
I haven't found a solid evidence that suricata can't handle the one-way traffic yet. But I doubt the feature was working only for the annotation visibility.antrea.io/l7-export=both when it was introduced.
Describe the bug
According to the guide https://github.com/antrea-io/antrea/blob/main/docs/network-flow-visibility.md#layer-7-network-flow-exporter, L7FlowExporter will work with the following three annotations:
However, when I set up a Kind cluster with Antrea 2.1 and enabled the L7FlowExporter, I noticed that the L7 flows will be generated only when the annotation is
visibility.antrea.io/l7-export=both
. There will be no L7 flows when the Pod annotation isvisibility.antrea.io/l7-export=egress
orvisibility.antrea.io/l7-export=ingress
To Reproduce
sample-pod
andsample-pod-1
with the following yaml:sample-pod Pod IP: 172.2.1.6
sample-pod-1 Pod IP: 172.2.1.7
kubectl annotate pod sample-pod visibility.antrea.io/l7-export=egress
to add the annotation to thesample-pod
Pod.sample-pod-1
via pythonpython3 -m http.server 8000
sample-pod
Podcurl http://172.2.1.7:8000
to generate egress trafficcurl http://localhost:8080/records?format=json
to get the flow records. The expected http flow records are not showing.However, an expected flow record similar like following should be reported:
I captured the traffic on the interface antrea-l7-tap0 and antrea-l7-tap1, only one direction traffic can be captured when the annotation is 'ingress' or 'egress', I suspect the suricata can't handle the traffic when there is only one way traffic being forwarded to it.
cc @antoninbas
Versions:
The text was updated successfully, but these errors were encountered: