You need to prove whether a NetworkPolicy is dropping a connection, not the app. How?
AdvancedTroubleshootingServices, DNS, Ingress and NetworkPolicy
Answer
Likely causes → Policy drops look like timeouts (no RST), which are easy to confuse with app hangs or security groups.
Diagnose →
# Cilium
kubectl -n kube-system exec ds/cilium -- cilium-dbg monitor --type drop
hubble observe --namespace shop --verdict DROPPED
# Calico
kubectl get networkpolicies.projectcalico.org,globalnetworkpolicies -A
# Generic: compare from an allowed vs a blocked source
kubectl run probe -n web --rm -it --image=nicolaka/netshoot --restart=Never -- nc -zv -w3 orders.shop 8080
Fix → If drops show your source and port, add the matching allow rule. If no drops are recorded, look elsewhere (security groups, app).
Prevent → Use a CNI with flow visibility (Hubble, Calico flow logs) and keep a policy-test suite.
More on Services, DNS, Ingress and NetworkPolicy
`curl http://orders.shop.svc.cluster.local` hangs, and `kubectl get endpointslices -l kubernetes.io/service-name=orders` shows `ENDPOINTS <unset>`.BeginnerEndpoints exist, but `curl orders:80` returns `Connection refused`.BeginnerA Service works when you curl the Pod IP but times out on the ClusterIP from every node.IntermediateInside a Pod, `nslookup orders` returns `;; connection timed out; no servers could be reached`.BeginnerCoreDNS Pods are in CrashLoopBackOff with `[FATAL] plugin/loop: Loop (127.0.0.1:41823 -> :53) detected for zone "."`.IntermediateCalls to `api.stripe.com` from Pods are slow, and CoreDNS logs show `api.stripe.com.payments.svc.cluster.local`, `api.stripe.com.svc.cluster.local` … all `NXDOMAIN`.Intermediate