retina icon indicating copy to clipboard operation
retina copied to clipboard

endpoints are being regenerate every 2 minutes after bumping Cilium version

Open nddq opened this issue 8 months ago • 2 comments

Image https://github.com/cilium/cilium/blob/2e57d3c934b9f62b9558807faf4af1e18ef18a72/pkg/endpointmanager/config.go#L19 This is controlling the periodic interval for regeneration, maybe this should be set to something much higher? The default is 2 minutes.

nddq avatar Apr 04 '25 16:04 nddq

#1521 Trying to fix with this. Looks like the endpointmanager now has a default regen time added. Below is the PR from cilium i attached. Also this seems to be running GC as well in the agent, do we need to? @huntergregory , can we disable GC in the agent as well ?

https://github.com/cilium/cilium/pull/35815/files

vakalapa avatar Apr 07 '25 21:04 vakalapa

can we disable GC in the agent as well

I think retina agent shouldn't modify cilium CRDs. We can have a custom k8s watcher instead of reusing Cilium's. The custom k8s watcher can use a dummy endpoint manager that does nothing

huntergregory avatar Apr 08 '25 16:04 huntergregory