cisco-open / cluster-registry-controller

An operator that automatically synchronizes Kubernetes resources across multiple clusters
Apache License 2.0
22 stars 8 forks source link

Multi namespaces cache #62

Open nishantapatil3 opened 1 year ago

nishantapatil3 commented 1 year ago
Q A
Bug fix? no yes
New feature? no yes
API breaks? no yes
Deprecations? no yes
Related tickets fixes memory issue in multicluster scenario
License Apache 2.0

What's in this PR?

Contains the changes required to limit namespace cache based on ResourceSyncRule rules.match.namespaces

Why?

In larger cluster with namespaces more than 30-40, it was observed that CR-controller watches/caches all the namespaces into the mem, which caused frequent OOMKilled issue while attaching peer clusters. This PR allows users to select namespaces to cache for their RSR, there-by reducing memory usage.

Checklist