You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have workloads that require individual pods per run. This results in a very high pod churn and pods come and go at a high rate.
The network policies can in some cases not be applied when the workload runs and the delayed application causes canceled network requests. These are not acceptable in our setup.
The POD_IP_ANNOTATION do speed up the process but are still not enough to ensure a 0% failure rate.
We now run an init container with every pod that ensures that the network policies are setup correctly. It literally watches for Successfully attached.*${POD_NAME} inside /opt/k8s/network-policy-logs.log. This however still does not work reliably.
Is there any way to determine of the network policies are applied correctly? Can we determine this somehow from the low level information here?
What happened:
We have workloads that require individual pods per run. This results in a very high pod churn and pods come and go at a high rate.
The network policies can in some cases not be applied when the workload runs and the delayed application causes canceled network requests. These are not acceptable in our setup.
As a workaround we tried
strict
mode but have determined it to be too unstable (25% failure rate after a while to setup netpols).The
POD_IP_ANNOTATION
do speed up the process but are still not enough to ensure a 0% failure rate.We now run an init container with every pod that ensures that the network policies are setup correctly. It literally watches for
Successfully attached.*${POD_NAME}
inside/opt/k8s/network-policy-logs.log
. This however still does not work reliably.Is there any way to determine of the network policies are applied correctly? Can we determine this somehow from the low level information here?
Environment:
kubectl version
): 1.30cat /etc/os-release
):uname -a
):The text was updated successfully, but these errors were encountered: