I'm having some trouble with network policies. I h...
# k3s
l
I'm having some trouble with network policies. I have an app container and a database container, and two policies: a default deny policy, and another that allows traffic from app to database. The deployment for the app container has an initContainer to setup the database, and in there I've noticed a bit of a delay for the network policy to be applied. That's fine, I just spin there waiting to be able to hit the database, and it usually happens in like 1 second or so. But about 50% of the time, it never actually succeeds, needing me to delete the pod and let it create another one, after which it succeeds. I don't really know how to troubleshoot this behavior