Help with Network Policy

From the https://github.com/ahmetb/kubernetes-network-policy-recipes/blob/master/14-deny-external-egress-traffic.md, It states that after applying the np, I would be able to connect to web app, but I couldnt. Someone could explain it to me? Thanks

Hi @flavioq

The page you linked shows a deny Egress policy. This policy allows all outbound traffic on ports 53/udp and 53/tcp to the kube-dns pods for DNS resolution only.
The application in Pods labeled app=foo will not be able to make any egress calls.

This Network policy does not affect Ingress traffic, and the app will be reachable from other Pods or external users. Unless no other Ingress polcy denies it.

Thanks Santosh, that’s my point. Regardless the authors stated that would be possible to make a call to web pod, this is not possible actually.