Hello all , When we apply a network policy in any pod , all other access will be . . .

I Malla:
hello all , When we apply a network policy in any pod , all other access will be gone . Only the access as per that policy will be allowed , then how will the pod communicate with coredns in 53 ?

Narendra Singh:
Good question.

Narendra Singh:
See https://github.com/ahmetb/kubernetes-network-policy-recipes/blob/master/11-deny-egress-traffic-from-an-application.md
You have to explicitly allow port for egress for communication with Coredns.

I Malla:
@Narendra Singh Thank you … So everytime we create egress as per our need, we always have to add 53 ourself ?

Narendra Singh:
@I Malla I think so, but…I am not 100% sure. Check other resources on internet as well.