Skip to content

Commit 152644b

Browse files
committed
drop vs event
1 parent e629138 commit 152644b

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

content/posts/2025-01-28-cli_use_cases.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,10 +166,16 @@ INFO[0000] flows table created
166166
167167
At this stage, the collector wait for incoming data. If nothing shows yet, it means that no traffic is captured. Try to open the route of your application or update the filters of the capture.
168168
169-
Once some traffic is captured, the output look like:
169+
- If you are using a standard cluster, cycle to the **packet drops** view. In this capture, we see that the traffic is dropped by OVS:
170+
171+
![cli drop state and cause]({page.image('cli/connectivity-scenario-cli-drop-sate-cause.png')})
172+
173+
You will need to investigate to get the root cause but it's probably a configuration such as a network policy.
174+
175+
- If you are using `TechPreview` feature, cycle to the **network events** view. In this capture, we see that the traffic is blocked by a network policy:
176+
170177
![cli network events]({page.image('cli/connectivity-scenario-cli-events.png')})
171178

172-
Cycle to the **network events** view. In this capture, we see that the traffic is blocked by a network policy since it reports the `NetpolNamespace` event.
173179
Edit your network policies and give another try.
174180

175181
Behind the scenes in our scenario, we used to have a deny all on the pod label:
@@ -178,7 +184,7 @@ kind: NetworkPolicy
178184
apiVersion: networking.k8s.io/v1
179185
metadata:
180186
name: deny-nodejs
181-
namespace: sample-app
187+
namespace: connectivity-scenario
182188
spec:
183189
podSelector:
184190
matchLabels:
@@ -191,7 +197,7 @@ spec:
191197
Once you updated your policies, you can give another try to your route until you fix the issue:
192198
![cli traffic]({page.image('cli/connectivity-scenario-cli-traffic.png')})
193199

194-
The network event disappears and your route should open correctly now. On top of that, you can ensure that the Round Trip Time is correct.
200+
The drop / network event disappears and your route should open correctly now. On top of that, you can ensure that the Round Trip Time is correct.
195201
If you are still experiencing issues with the route, you may update / get rid of the filter(s) and play with live filtering.
196202

197203
- While running a capture, you can place **additionnal live filters** to the view by simply typing keywords on your keyboard such as `nodejs`:
21.1 KB
Loading
-253 KB
Loading

0 commit comments

Comments
 (0)