A public policy example was adapted to production. Debug access into the pod works, but normal service calls still time out because the policy does not allow the actual source path.
kubectl exec works but the in-cluster service call still times out because the NetworkPolicy path is narrower than expected
Direct debugging into a pod succeeds, yet service-to-service traffic still fails because the effective policy only allows a subset of the intended path.
Scenario
What to check first
- Identify the primary failure signal in the Policy Path Debug scenario.
- Separate visible symptoms from the underlying technical dependency.
- Describe the safest recovery path and the follow-up prevention work.
Checking checklist
- Summarize the current impact and the last known change.
- Collect direct evidence from logs, runtime state, and configuration before changing anything.
- Separate immediate recovery from permanent prevention work.
Recovery and prevention
Compare the debug path with the real service path before relaxing the entire policy.
Questions worth viewing together
Community-derived Kubernetes connectivity problem based on Reddit and Stack Overflow threads where NetworkPolicy blocked service traffic despite success... A successful kubectl exec test does not prove peer-to-peer network policy is open.
Teams often treat this like a DNS or app bug because an interactive shell test succeeds.
NetworkPolicy validates source and direction; manual pod access proves less than teams assume.
Similar cases seen in the field