I have created a simple network policy that allows ingress to a MySQL Pod on port 3306 only from the application pod. I can see that the selectors for my podSelctors clause match for both the app and the MySQL pod.
I tried to test this policy by doing a curl from another pod to the mysql pod expecting the ingress to be restricted but rather the curl executed successfully and was able to connect to the MySQL pod.
Can someone please help and point it if I am missing something here?
Here’s the network policy yaml