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

resource synchronization might affect kubernetes API #134

Open
rg2011 opened this issue Mar 7, 2022 · 0 comments
Open

resource synchronization might affect kubernetes API #134

rg2011 opened this issue Mar 7, 2022 · 0 comments

Comments

@rg2011
Copy link
Contributor

rg2011 commented Mar 7, 2022

When kube-mgmt is synchronizing resources, it will restart syncronization whenever an update to OPA fails. Each time synchronization restarts, it will create a new ListWatch and ask the kubernetes API for a full resource list across all namespaces.

This can happen as often as once per second, because OPA errors always reset the backoff delay to the minimum (1 second currently):

delay = backoffMin

So a faulty OPA or kube-mgmt service can hit the API servers quite hard, depending on the number of resources being watched.

Kube-mgmt should probably use an informer and resync from the informer cache instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant