Back to all scenarios
Scenario #157
Networking
K8s v1.19, GKE

Network Traffic Loss Due to Port Collision in Network Policy

Network traffic was lost due to a port collision in the network policy, affecting application availability.

Find this helpful?
What Happened

Network traffic was dropped because a network policy inadvertently blocked traffic to a port that was required by another application.

Diagnosis Steps
  • 1Inspected the network policy using kubectl describe netpol and identified the port conflict.
  • 2Verified traffic flow using kubectl logs to identify blocked traffic.
Root Cause

Misconfigured network policy that blocked traffic to a necessary port due to port collision.

Fix/Workaround
• Updated the network policy to allow the necessary port.
• Applied the updated network policy and tested the traffic flow.
Lessons Learned

Thoroughly test network policies to ensure that they do not block critical application traffic.

How to Avoid
  • 1Review network policies in detail before applying them in production.
  • 2Use automated tools to validate network policies.