How could I monitor the network policies behavior?
I have a k8s cluster with calico as SDN.
For example I create a network policy to deny traffic from a set of IPs.
I try to make some executions from those IPs and they fail.
Where can I see that that traffic is being rejected because a Network policy?
Thank you.
There is no such possibility by default, but you can try to follow this instruction to create a user interface that shows blocked and allowed connections in real time.
Also, Getting started with Calico could be useful.
You can find Calico logs in the /var/log/calico folder on the Calico pod.
More about logging please find here: Calico Logging.