Performance Problems with Network Policies - Request for Help #8321
maltelehmann
started this conversation in
General
Replies: 1 comment 46 replies
-
@manuelbuil @rbrtbnfgl do you have any suggestions on where we might look for this? 248 pods and 170 policies is probably more than we test with regularly, but I'm curious if there's anywhere in particular we could look for performance improvements. |
Beta Was this translation helpful? Give feedback.
46 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all!
first, thank you very much for k3s, we are really enjoy working with it!
On our testing clusters, we activated network policies with default deny-all. Afterwards, we observed that between pod start and reacheability of coredns pod, it takes >=20sec. According to some k3s/kube-router issues regarding network policies, we would expect only a couple of seconds.
We only get a delay of a couple of seconds when we reduce the number of network policies (see below). We consider our cluster and the number of network policies as rather small, there seems to be a problem in our configuration or maybe a bug?
Our investigations (below) did not give us any hint on what is the root cause of the performance problems. Do you have any recommendations how we could proceed to find the root cause?
Thank you for your help!
Malte
System setup
OS
iptables service is running with egress allow all and ingress only from specific hosts etc.
we have the following amount of resulting iptables rules and ipset rules:
k3s
version:
v1.26.6+k3s1
config.yaml
Debugging
k3s
Logs withdebug: true
-> do not show any error or hint on the delayprefer-bundled-bin: false
-> no change in performancesudo ipset list | grep "<my_pod_ip> "
during pod startup -> it can be observed that the result is first 1 line, after some seconds 2 lines, and finally 6 lines and then the DNS is reacheable. So it seems that the update of the ipset rules takes really longBeta Was this translation helpful? Give feedback.
All reactions