Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Limit controller object caches to only look at DevWorkspace-related resources #616

Closed
amisevsk opened this issue Sep 24, 2021 · 0 comments · Fixed by #652
Closed

Limit controller object caches to only look at DevWorkspace-related resources #616

amisevsk opened this issue Sep 24, 2021 · 0 comments · Fixed by #652
Assignees
Labels
sprint/current Is assigned to issues which are planned to work on in the current team sprint

Comments

@amisevsk
Copy link
Collaborator

amisevsk commented Sep 24, 2021

Description

The DevWorkspace Operator's controller caches a lot of Kubernetes objects (deployments, jobs, configmaps, secrets, serviceaccounts, pods, services, ingresses, routes). This means that the number of such objects on the cluster (even outside of those created for DevWorkspaces) impacts the memory usage of DWO in large clusters with many resources.

controller-runtime v0.9.0 has the beginnings of a system to restrict the controller cache to specific objects, in order to avoid the issue above.

Additional context

https://github.com/kubernetes-sigs/controller-runtime/blob/master/designs/use-selectors-at-cache.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sprint/current Is assigned to issues which are planned to work on in the current team sprint
Projects
None yet
2 participants