Hi, Is it possible to define egress traffic of a pod(foo) to other pods(bar, baz . . .

ömer sönmez:
Hi,
Is it possible to define egress traffic of a pod(foo) to other pods(bar, baz), using network policies of other pods(bar, baz)?

You should define the egress net policy to the foo pod if you want to limit and control the egress traffic sent from it, On the other hand, The other pods bar and baz can be controlled with net policy Ingress if you want to control the traffic sent to them, so it depends on your need.

In some cases, you should define the Ingress to bar and baz and the Egress to foo at the same time to allow the traffic.

You can refer to this video also
Net Policy