For example, here, the ports must be valid and one of the rules above so it cann . . .

Ceci Ivanov:
for example, here, the ports must be valid and one of the rules above so it cann accept traffic?
image.png

Aneek Bera:
That is the concept of network policy

Radoslaw Czajkowski:
it allows the traffic from the mentioned rules that are connecting to the target port 6379

Radoslaw Czajkowski:
there are dashes (elements of a “from” array) so these are OR statements - only one rule needs to be valid to accept ingress traffic

Radoslaw Czajkowski:
so for example, pods labeled role: frontend reaching port 6379 on the pods matching this NP will be accepted

Ceci Ivanov:
great thanks