Hi all. while working on network policies, if we have to create a network policy . . .

Sundeep Y:
hi all. while working on network policies, if we have to create a network policy to allow traffic only from two pods with each having labels app:pod1 and app:pod2 . what should be the network policy be like. both these pods will be in single pod selector only or separate them as two different rules. pls clarify

unnivkn:

Sundeep Y:
so it is 2nd implementation?