Hi I have a question on network policy..Is there any difference between both : . . .

Edmund Kueh:
Hi I have a question on network policy…Is there any difference between both : ingress:

  • {}
    vs.
    ingress: - from: []

Edmund Kueh:
@Tej_Singh_Rana Any idea ?

Tej_Singh_Rana:
I think in this condition it’s selecting all the pods in that namespace and applied ingress rule.

ingress:
- {}

In this condition, it’s not selecting none of the pods in that namespace and none of ingress rules applied on.

ingress: 
- from: []